# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-func-timeout pkgver=4.3.6 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" subpackages="$pkgname-pyc" 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 "