diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template index e3c050d1f3..ef970b3c2f 100644 --- a/srcpkgs/python3-pytest/template +++ b/srcpkgs/python3-pytest/template @@ -1,34 +1,37 @@ # Template file for 'python3-pytest' pkgname=python3-pytest -version=5.3.4 +version=5.3.5 revision=1 archs=noarch -wrksrc="${pkgname/python3-//}-${version}" +wrksrc="pytest-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-py python3-packaging python3-attrs python3-more-itertools python3-atomicwrites python3-pluggy python3-wcwidth" checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock - python3-nose python3-requests python3-parsing tox" + python3-nose python3-requests python3-parsing python3-xmlschema" short_desc="Simple powerful testing with Python 3" maintainer="Orphaned " 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=1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 +checksum=0d5fe9189a148acc3c3eb2ac8e1ac0742cb7618c084f3d228baaec0c254b318d alternatives=" pytest:pytest:/usr/bin/pytest3 pytest:py.test:/usr/bin/py.test3" post_patch() { - sed -i setup.py \ + vsed -i setup.py \ -e '/setup_requires=/d' \ -e "s|use_scm_version=.*|version=\"${version}\",|" + # This test depends on tox, and/or egg-info + # merely check pytest and py.test were generated + rm testing/test_entry_points.py } do_check() { - tox -e "py${py3_ver/./}" + PYTHONPATH=$(pwd)/build/lib python3 -m pytest } post_install() {