aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-kthread/APKBUILD
blob: c2cbce1bf7a576b94c9799b218e4503bdc00d003 (plain) (blame)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-kthread
pkgver=0.2.2
pkgrel=0
pkgdesc="Killable threads in Python!"
url="https://github.com/munshigroup/kthread"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	py3-nose
	py3-pytest
	"
source="https://pypi.python.org/packages/source/k/kthread/kthread-$pkgver.tar.gz"
options="!check" # No tests in PyPi package and no Github releases
builddir="$srcdir/kthread-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="9d59b775c90ff134528dc5209ac9af3a1a2c820a80b20b852e31c8c6a1b3852fb6a5a404c807ce5120e286e3fd0db366699c58748c012db46d63c9a3e62aa3b1  kthread-0.2.2.tar.gz"