mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
33 lines
961 B
Text
33 lines
961 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-func-timeout
|
|
pkgver=4.3.5
|
|
pkgrel=1
|
|
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 --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="0711b8bdd2b55e7473fb525e70b0e6596bb11ba074e6110c52e7fdc842d87ef2d57307f02af86eef1b1e7e4c84a9faf25ec450d25addce3ebb93e3d341b566ac func_timeout-4.3.5.tar.gz"
|