aports/main/py3-distlib/APKBUILD
ptrcnull b668b481a9 main/py3-distlib: disable tests using network
doesn't affect the built package = no need for a rebuild
2025-03-30 21:59:40 +02:00

38 lines
1.1 KiB
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-distlib
pkgver=0.3.9
pkgrel=0
pkgdesc="Distribution utilities"
url="https://github.com/pypa/distlib"
arch="noarch"
license="PSF-2.0"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pypa/distlib/archive/refs/tags/$pkgver.tar.gz
10-remove-funky-test.patch
"
builddir="$srcdir/distlib-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONHASHSEED=0 SKIP_ONLINE=1 python3 -m unittest discover tests
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/distlib*.whl
rm "$pkgdir"/usr/lib/python3*/site-packages/distlib/*.exe
}
sha512sums="
d89b3ae450a02f634db10baef8d2ff445afa99cd69377f40ef07d591b4bbb2e24fff43c92eeeb93628eaee292fa1e8324eb1a842cf9401feb1f309dbb6f20a25 py3-distlib-0.3.9.tar.gz
c77d21ec087abe6dbd80bcfc20f3b26d881ff7f42e2ba37185fe6315934afda5be23eed7cc522ecf01d696ba031ed83a2a43e87cd7be6ee7a7963eaa95afebe7 10-remove-funky-test.patch
"