From 96097673c38f8079117f5e18c22885f160fbf5cb Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Sat, 4 Sep 2021 09:16:14 -0500 Subject: [PATCH] New package: python3-pytest-timeout-1.4.2 --- srcpkgs/python3-pytest-timeout/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/python3-pytest-timeout/template diff --git a/srcpkgs/python3-pytest-timeout/template b/srcpkgs/python3-pytest-timeout/template new file mode 100644 index 0000000000..354b1eedcd --- /dev/null +++ b/srcpkgs/python3-pytest-timeout/template @@ -0,0 +1,25 @@ +# Template file for 'python3-pytest-timeout' +pkgname=python3-pytest-timeout +version=1.4.2 +revision=1 +wrksrc="pytest-timeout-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pytest" +checkdepends="${depends} python3-pexpect python3-pytest-cov" +short_desc="Pytest plugin which will terminate tests after a certain timeout" +maintainer="Tim Sandquist " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-timeout/" +distfiles="${PYPI_SITE}/p/pytest-timeout/pytest-timeout-${version}.tar.gz" +checksum=20b3113cf6e4e80ce2d403b6fb56e9e1b871b510259206d40ff8d609f48bda76 + +post_install() { + vlicense LICENSE +} + +# adding do_check since the tests depend on this package +do_check() { + python setup.py install + pytest +}