diff --git a/ilot/py3-std-uritemplate/APKBUILD b/ilot/py3-std-uritemplate/APKBUILD new file mode 100644 index 0000000..9294abc --- /dev/null +++ b/ilot/py3-std-uritemplate/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +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 +"