void-packages/srcpkgs/python-pytest/template

46 lines
1.2 KiB
Bash

# Template file for 'python-pytest'
pkgname=python-pytest
version=3.4.2
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="_pytest"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-py python-funcsigs python-pluggy python-attrs python-six"
checkdepends="python3-hypothesis python3-py python3-pluggy python3-attrs python3-six"
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=117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5
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-setuptools python3-py python3-pluggy python3-attrs python3-six"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}