blob: cb24ae601fc8e2c60aba013659bd0078b3889905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
pkgname=python-flake8-pytest-style
pkgver=1.7.2
pkgrel=1
pkgdesc='A flake8 extension that checks issues with pytest tests'
arch=('any')
url='https://github.com/m-burst/flake8-pytest-style'
license=('MIT')
depends=('python' 'flake8' 'python-flake8-plugin-utils')
makedepends=(
'git'
'python-build'
'python-installer'
'python-poetry-core'
)
#checkdepends=('python-pytest-deadfixtures')
_commit='01a4c8eaf64292363bcbae4c93bfdd6722a494ff'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
#check() {
# cd "$pkgname"
#
# pytest -v
#}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|