testing/py3-iso639: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:55:21 -04:00
parent 03aec9e958
commit b8979a4159

View file

@ -4,26 +4,39 @@
pkgname=py3-iso639
_pkgname=iso639
pkgver=0.4.5
pkgrel=1
pkgrel=0
pkgdesc="Python library for ISO 639 standard"
arch='noarch'
arch="noarch"
url="https://github.com/noumar/iso639"
license='AGPL-3.0-only'
depends="python3"
makedepends='py3-setuptools'
license="AGPL-3.0-only"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
"
checkdepends="
py3-pytest
py3-pycountry
"
options="!check" # Failing testsuite
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
subpackages="$pkgname-pyc"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test || warning "Tests failed"
PYTHONPATH="$builddir" python3 ./tests/tests.py
}
package() {
python3 setup.py install --skip-build -O1 --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="