From 40a9522f7f3f467bdfe0bce7c53eec48f9c4347c Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Sat, 23 Jan 2021 17:23:14 +0100 Subject: testing/py3-kthread: new aport --- testing/py3-kthread/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 testing/py3-kthread/APKBUILD diff --git a/testing/py3-kthread/APKBUILD b/testing/py3-kthread/APKBUILD new file mode 100644 index 00000000000..c2cbce1bf7a --- /dev/null +++ b/testing/py3-kthread/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +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" -- cgit v1.2.3