aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-pytest-timeout/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py3-pytest-timeout/APKBUILD')
-rw-r--r--main/py3-pytest-timeout/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/main/py3-pytest-timeout/APKBUILD b/main/py3-pytest-timeout/APKBUILD
new file mode 100644
index 00000000000..12dc3c92dda
--- /dev/null
+++ b/main/py3-pytest-timeout/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Oleg Titov <oleg.titov@gmail.com>
+# Maintainer: Oleg Titov <oleg.titov@gmail.com>
+pkgname=py3-pytest-timeout
+_pyname=pytest-timeout
+pkgver=2.3.1
+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-gpep517 py3-setuptools py3-wheel"
+checkdepends="py3-pexpect"
+subpackages="$pkgname-pyc"
+source="https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-$pkgver.tar.gz"
+builddir="$srcdir/$_pyname-$pkgver"
+
+build() {
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
+}
+
+check() {
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ .testenv/bin/python3 -m pytest -x
+}
+
+package() {
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
+}
+
+sha512sums="
+f200d625d11f76173521f4e2e4e09d57f6613d9b1420c57893b454ec496d5f11b32390b95eb995b403d15f8563b742a58fa0e0cbad42246b4049787a389ad83e pytest-timeout-2.3.1.tar.gz
+"