mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
821 B
Text
34 lines
821 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-kthread
|
|
pkgver=0.2.3
|
|
pkgrel=1
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
16032fb6fe503612e80115b721fa4afdba07bc217bb04d11f63a0f3f585dee927050bd7a8c997afb75a45f85c1bb9391a25ed22e54fdc101fda1bbe259e98196 kthread-0.2.3.tar.gz
|
|
"
|