ilot/py3-std-uritemplate: new aport

This commit is contained in:
Antoine Martin 2024-09-18 21:10:58 -04:00
parent 47635e1936
commit 925c7106f0
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,41 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-std-uritemplate
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=std-uritemplate
pkgver=1.0.6
pkgrel=0
pkgdesc="A complete and maintained cross-language implementation of the Uri Template specification RFC 6570 Level 4"
url="https://pypi.python.org/project/std-uritemplate"
arch="noarch"
license="Apache-2.0"
depends="python3"
checkdepends="py3-pytest"
makedepends="py3-setuptools py3-gpep517 py3-wheel poetry"
source="$pkgname-$pkgver.tar.gz::https://github.com/std-uritemplate/std-uritemplate/archive/refs/tags/$pkgver.tar.gz"
options="!check" # TODO
builddir="$srcdir"/$_pkgreal-$pkgver/python
subpackages="$pkgname-pyc"
prepare() {
default_prepare
ln -s ../Readme.md Readme.md
}
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
poetry run python test.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
4873ce356170aea1b45479d5ded0b596265782c097d3fd9d1bb4cc8ad902067bab654057173a2e2b1da37e5ac36ebee024feca43b0e4298b103dc979f97e7c1c py3-std-uritemplate-1.0.6.tar.gz
"