2017-11-07 10:10:00 +01:00
|
|
|
# Template file for 'python-pytest'
|
|
|
|
pkgname=python-pytest
|
2017-11-16 04:41:42 +01:00
|
|
|
version=3.2.5
|
2017-11-07 10:10:00 +01:00
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname/python-//}-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="pytest"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
|
|
depends="python-setuptools python-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"
|
2017-11-16 04:41:42 +01:00
|
|
|
checksum=6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81
|
2017-11-07 10:10:00 +01:00
|
|
|
alternatives="python-pytest:pytest:/usr/bin/pytest2"
|
|
|
|
noarch=yes
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-pytest_package() {
|
|
|
|
noarch=yes
|
|
|
|
pycompile_module="pytest"
|
|
|
|
alternatives="python-pytest:pytest:/usr/bin/pytest3"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
depends="python3-setuptools python3-py"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/*3
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|