void-packages/srcpkgs/python3-pytest-trio/template

27 lines
904 B
Bash

# Template file for 'python3-pytest-trio'
pkgname=python3-pytest-trio
version=0.8.0
revision=2
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 <tornaria@cmat.edu.uy>"
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
}