mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
33 lines
934 B
Text
33 lines
934 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-threadpoolctl
|
|
pkgver=2.2.0
|
|
pkgrel=0
|
|
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-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="https://pypi.python.org/packages/source/t/threadpoolctl/threadpoolctl-$pkgver.tar.gz"
|
|
builddir="$srcdir/threadpoolctl-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# HACK so calls to "python" will get what we want
|
|
ln -s /usr/bin/python3 python
|
|
export PATH="$(pwd):$PATH"
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
53d67e7f224b205b319364d4a75fd5035f8343bd46c6244167d41effb929ef67ef07cda4c3587e2371ce41ac8f29885b72e4a51f52d5a327278c648e557dbdf1 threadpoolctl-2.2.0.tar.gz
|
|
"
|