41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# 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=2.0.0
|
|
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="
|
|
007131989d20e5a7f1ad9533cecc9c681bf5e4b509c60709dae4e3aad6c6227bd7afe86211e67a2558df831cabb91bad347cf458b9d1b37448fa487b18799bc0 py3-std-uritemplate-2.0.0.tar.gz
|
|
"
|