aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-threadpoolctl/APKBUILD
blob: 49722415ef530d7738e508bbfd7f8e71f699a871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-threadpoolctl
pkgver=2.2.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-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
"