mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
33 lines
937 B
Text
33 lines
937 B
Text
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-pytest-timeout
|
|
_pyname=pytest-timeout
|
|
pkgver=1.4.2
|
|
pkgrel=1
|
|
pkgdesc="py.test plugin to abort hanging tests"
|
|
url="https://github.com/pytest-dev/pytest-timeout/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pytest"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pexpect"
|
|
source="https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
options="!check" # tests broken
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" python3 -m pytest -x
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install \
|
|
--prefix=/usr \
|
|
--root="$pkgdir" \
|
|
--single-version-externally-managed
|
|
}
|
|
|
|
sha512sums="3446ecdb5aaad5fbca12df4e7f4f40c6c1a12895d3ed9f3a3ee24800ce36deed3cb8c09a4cc72220c962b06f821cfd55bf7eebbca23664c56abf2d0e5bc8fbea pytest-timeout-1.4.2.tar.gz"
|