diff --git a/srcpkgs/python3-pytest-trio/template b/srcpkgs/python3-pytest-trio/template new file mode 100644 index 00000000000..4009a6de72c --- /dev/null +++ b/srcpkgs/python3-pytest-trio/template @@ -0,0 +1,26 @@ +# Template file for 'python3-pytest-trio' +pkgname=python3-pytest-trio +version=0.8.0 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +depends="python3-trio python3-outcome python3-pytest" +checkdepends="$depends python3-hypothesis" +short_desc="Pytest plugin for trio" +maintainer="Gonzalo TornarĂ­a " +license="MIT, Apache-2.0" +homepage="https://github.com/python-trio/pytest-trio" +changelog="https://raw.githubusercontent.com/python-trio/pytest-trio/master/docs/source/history.rst" +distfiles="${PYPI_SITE}/p/pytest-trio/pytest-trio-${version}.tar.gz" +checksum=8363db6336a79e6c53375a2123a41ddbeccc4aa93f93788651641789a56fb52e +make_check_pre="env PYTHONPATH=." + +post_patch() { + # Defining 'pytest_plugins' in a non-top-level conftest is no + # longer supported in pytest + mv pytest_trio/_tests/conftest.py . +} + +post_install() { + vlicense LICENSE +}