mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +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
35 lines
962 B
Text
35 lines
962 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-func-timeout
|
|
pkgver=4.3.6
|
|
pkgrel=0
|
|
pkgdesc="Python module which allows you to specify timeouts when calling any existing function"
|
|
url="https://github.com/kata198/func_timeout"
|
|
arch="noarch"
|
|
license="LGPL-3.0-only"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/kata198/func_timeout/archive/$pkgver/func_timeout-$pkgver.tar.gz"
|
|
builddir="$srcdir/func_timeout-$pkgver"
|
|
|
|
options="!check" #TEMP
|
|
|
|
build() {
|
|
# We don't care about Python 2
|
|
rm "$builddir"/func_timeout/py2_raise.py
|
|
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
4f50ab5ee23d5c8ba721dfeee866a38857ea94c12a1032a977fef63bdbf4e63bf0cfdf6912d26358f78834ab81e2bf2b1cd9c487ba1f9141af08bb97538f9db4 func_timeout-4.3.6.tar.gz
|
|
"
|