aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-threadpoolctl/APKBUILD
blob: 2466358f4982e01112da34b786fe8e55f334876d (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
34
# 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
"