testing/py3-iso639: move from user
This commit is contained in:
parent
03aec9e958
commit
b8979a4159
1 changed files with 21 additions and 8 deletions
|
@ -4,26 +4,39 @@
|
||||||
pkgname=py3-iso639
|
pkgname=py3-iso639
|
||||||
_pkgname=iso639
|
_pkgname=iso639
|
||||||
pkgver=0.4.5
|
pkgver=0.4.5
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Python library for ISO 639 standard"
|
pkgdesc="Python library for ISO 639 standard"
|
||||||
arch='noarch'
|
arch="noarch"
|
||||||
url="https://github.com/noumar/iso639"
|
url="https://github.com/noumar/iso639"
|
||||||
license='AGPL-3.0-only'
|
license="AGPL-3.0-only"
|
||||||
depends="python3"
|
makedepends="
|
||||||
makedepends='py3-setuptools'
|
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"
|
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 setup.py test || warning "Tests failed"
|
PYTHONPATH="$builddir" python3 ./tests/tests.py
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build -O1 --root="$pkgdir"
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
Loading…
Reference in a new issue