1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-threadpoolctl/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

33 lines
886 B
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-threadpoolctl
pkgver=3.1.0
pkgrel=1
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"
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
"