void-packages/srcpkgs/python-pytest/template
maxice8 e1aa9dd7e8 python-pytest: update to 3.5.0.
Closes: #12822 [via git-merge-pr]
2018-03-28 22:10:31 -07:00

47 lines
1.3 KiB
Bash

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