blob: 05b59363f3595cd33bb88f3396906ea27589cfa9 (
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
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='python-aenum'
_module='aenum'
pkgver='3.1.16'
pkgrel=1
pkgdesc="Advanced Enumerations (compatible with Python's stdlib Enum)"
url="https://pypi.org/project/aenum"
depends=(python)
checkdepends=()
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
license=('BSD-3-Clause')
arch=('any')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ethanfurman/aenum/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('4c7a5fb76a04ad8dc0c82b13c4cd858b755c69d16c2060a248bf3380a4d1067e')
prepare() {
cd "${_module}-${pkgver}"
rm aenum/_py2.py
}
build() {
cd "${_module}-${pkgver}"
python -m build -wnx
}
package() {
cd "${_module}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm "${pkgdir}/${site_packages}/aenum/test_v3.py"
install -D -m644 aenum/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
check() {
cd "${_module}-${pkgver}"
python -m aenum.test
}
|