ilot/py3-std-uritemplate: new aport
This commit is contained in:
parent
47635e1936
commit
925c7106f0
1 changed files with 41 additions and 0 deletions
41
ilot/py3-std-uritemplate/APKBUILD
Normal file
41
ilot/py3-std-uritemplate/APKBUILD
Normal 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
|
||||||
|
"
|
Loading…
Add table
Reference in a new issue