aports/testing/py3-furl/APKBUILD
2024-08-07 16:00:50 +02:00

42 lines
1.5 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-furl
_pkgname=furl
pkgver=2.1.3
pkgrel=4
pkgdesc="Python3 URL manipulator"
url="https://github.com/gruns/furl"
arch="noarch"
license="Unlicense"
depends="py3-orderedmultidict py3-six"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest py3-flake8 py3-pycodestyle py3-pyflakes"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/f/furl/furl-$pkgver.tar.gz
0001-Use-ipaddress-to-detect-valid-and-invalid-IPs.patch
python-3.12.4.patch
"
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
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
ce7455bd1a352243efd9715e80e9f9979631cc058927edcd8c52ccb85d27fd8f32079611bb29c487d2add2d1d941d56e4db75520339dc371b1539811ccefda02 furl-2.1.3.tar.gz
2c6fdb72b7b78a11b1999b2edc696e9eea4e8afa3d93c814aa5a0bda1c6b92abbffcc4eaaf024135f52f8194398675e50ff390eb2bf96c73cbe190501ee20a61 0001-Use-ipaddress-to-detect-valid-and-invalid-IPs.patch
dd1df903a7d43a3689f96f1874ef0ffc55d4d49d136c578512dcfd87780e8a002a1c145fa5356195e77ebac45b87f266ff668238da467e69aa2985079db9e60e python-3.12.4.patch
"