ayaports/testing/py3-iso639/APKBUILD

45 lines
955 B
Text
Raw Normal View History

2023-01-10 19:16:39 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2021-11-30 21:44:44 +00:00
pkgname=py3-iso639
2023-01-10 19:16:39 +00:00
_pkgname=iso639
2021-11-30 21:44:44 +00:00
pkgver=0.4.5
2023-08-30 17:55:21 +00:00
pkgrel=0
2021-11-30 21:44:44 +00:00
pkgdesc="Python library for ISO 639 standard"
2023-08-30 17:55:21 +00:00
arch="noarch"
2021-11-30 21:44:44 +00:00
url="https://github.com/noumar/iso639"
2023-08-30 17:55:21 +00:00
license="AGPL-3.0-only"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
"
checkdepends="
py3-pytest
py3-pycountry
"
options="!check" # Failing testsuite
2023-01-10 19:16:39 +00:00
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
2023-08-30 17:55:21 +00:00
subpackages="$pkgname-pyc"
2021-11-30 21:44:44 +00:00
build() {
2023-08-30 17:55:21 +00:00
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
2021-11-30 21:44:44 +00:00
}
check() {
2023-08-30 17:55:21 +00:00
PYTHONPATH="$builddir" python3 ./tests/tests.py
2021-11-30 21:44:44 +00:00
}
package() {
2023-08-30 17:55:21 +00:00
python3 -m installer -d "$pkgdir" \
dist/*.whl
2021-11-30 21:44:44 +00:00
}
2023-01-10 19:16:39 +00:00
sha512sums="
6201535804d7d1af77f1f2961d8eb1c2fae323dc5d4361b44e23caa834de1dcb9abd257cda4068f12a1a2984000edfa49cb852ecef5baee2d78d9c9e587202e4 py3-iso639-0.4.5.tar.gz
"