python3-pytest: update to 5.3.2

Split from python-pytest
This commit is contained in:
Doan Tran Cong Danh 2019-12-14 18:36:35 +07:00 committed by Juan RP
parent ef80ab18de
commit cae4c73f92
2 changed files with 39 additions and 1 deletions

View File

@ -1 +0,0 @@
python-pytest

View File

@ -0,0 +1,39 @@
# Template file for 'python3-pytest'
pkgname=python3-pytest
version=5.3.2
revision=1
archs=noarch
wrksrc="${pkgname/python3-//}-${version}"
build_style=python3-module
pycompile_module="_pytest pytest.py"
hostmakedepends="python3-setuptools"
depends="python3-py python3-packaging python3-attrs python3-more-itertools
python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth"
checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
python3-nose python3-requests python3-parsing tox"
short_desc="Simple powerful testing with Python 3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://docs.pytest.org/en/latest/"
changelog="https://docs.pytest.org/en/latest/changelog.html"
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
checksum=6b571215b5a790f9b41f19f3531c53a45cf6bb8ef2988bc1ff9afb38270b25fa
alternatives="
pytest:pytest:/usr/bin/pytest3
pytest:py.test:/usr/bin/py.test3"
post_patch() {
sed -i setup.py \
-e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version=\"${version}\",|"
}
do_check() {
tox -e py36
}
post_install() {
mv ${DESTDIR}/usr/bin/pytest ${DESTDIR}/usr/bin/pytest3
mv ${DESTDIR}/usr/bin/py.test ${DESTDIR}/usr/bin/py.test3
vlicense LICENSE
}