mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 20:55:19 +03:00
33 lines
948 B
Text
33 lines
948 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.3.4
|
|
pkgrel=0
|
|
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 py3-pytest"
|
|
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="29af25f3c3776d9ef63c6b7217ffc6b0cedd873b8cc96be742a642da84d12c8988bb9b409e00850246e554b21908d6fd2207692650b154cf6831f38c4395bc80 pytest-timeout-1.3.4.tar.gz"
|