aports/community/py3-threadpoolctl/APKBUILD
2023-04-20 12:03:10 +00:00

35 lines
913 B
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-threadpoolctl
pkgver=3.1.0
pkgrel=2
pkgdesc="Python helpers to limit the number of threads used in native libraries"
url="https://github.com/joblib/threadpoolctl"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-flit-core py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/t/threadpoolctl/threadpoolctl-$pkgver.tar.gz"
builddir="$srcdir/threadpoolctl-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/threadpoolctl*.whl
}
sha512sums="
95ca31084d5f856f382469e7a6ee927d769aa5792971d0e54510d38cae303e08e03af3ad8b2d1c6a11bc6a597182cb499145d1eb1b1bb0f8ede508df6171165e threadpoolctl-3.1.0.tar.gz
"