blob: a85e19726a5291506797480b58f5fb1dc4bb6827 (
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
|
# Maintainer: pancho horrillo <pancho at pancho dot name>
# Contributor: Andrea Orru <andrea at orru dot io>
# Python package author: Steven Myint <UNKNOWN>
_name=autoflake
pkgname=python-autoflake
pkgver=2.0.2
pkgrel=1
pkgdesc='Removes unused imports and unused variables'
arch=(any)
url="https://github.com/myint/$_name"
license=("MIT")
depends=(
'python'
'python-pyflakes'
# required for python<3.11
'python-tomli'
)
makedepends=(
'python-build'
'python-hatchling'
'python-installer'
'python-pytest'
)
source=("https://github.com/myint/$_name/archive/v${pkgver}.tar.gz")
sha256sums=('90fc6f7135047ba523d86d69860b8f63c7fd099f67b369f1d5dce39253ec09b1')
build() {
pwd
ls -lah
cd "$srcdir/$_name-$pkgver"
python -m build -nw
}
check() {
cd "$srcdir/$_name-$pkgver"
pytest
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer -d "$pkgdir" dist/*.whl
}
|