void-packages/srcpkgs/python-pytest/template

47 lines
1.3 KiB
Bash

# Template file for 'python-pytest'
pkgname=python-pytest
version=3.6.2
revision=2
noarch=yes
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="_pytest pytest.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools
python-pluggy python-py python-setuptools"
checkdepends="python3-atomicwrites python3-hypothesis python3-more-itertools
python3-pluggy python3-py python3-atomicwrites"
short_desc="Simple powerful testing with Python2"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="MIT"
homepage="https://docs.pytest.org/en/latest/"
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
checksum=8ea01fc4fcc8e1b1e305252b4bc80a1528019ab99fd3b88666c9dc38d754406c
alternatives="
pytest:pytest:/usr/bin/pytest2
pytest:py.test:/usr/bin/py.test2"
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-pytest_package() {
noarch=yes
pycompile_module="_pytest pytest.py"
alternatives="
pytest:pytest:/usr/bin/pytest3
pytest:py.test:/usr/bin/py.test3"
short_desc="${short_desc/Python2/Python3}"
depends="python3-atomicwrites python3-attrs python3-more-itertools
python3-pluggy python3-py python3-setuptools"
pkg_install() {
vmove "usr/bin/*3"
vmove "usr/lib/python3*"
vlicense LICENSE
}
}