1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/py3-rfc3986/APKBUILD
2025-05-01 22:54:39 +00:00

35 lines
1.1 KiB
Text

# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-rfc3986
_pkgname=rfc3986
pkgver=2.0.0
pkgrel=3
pkgdesc="implementation of RFC 3986 including validation & authority parsing"
url="https://rfc3986.readthedocs.io/en/latest/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-pytest py3-pytest-runner"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/rfc3986/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
# find and remove directory containing pyc files
find "$pkgdir" -name '__pycache__' -type d -exec rm -rf {} +
}
sha512sums="
6ca171868a625d893e928be013f5369be08d631bf13a293f9f6c3dc1099d73808bb44e1cee7a5d9823da9d5cf282a85afd0df853bb342849d5d40a315c7bd7b5 py3-rfc3986-2.0.0.tar.gz
"