# Template file for 'python3-pytest' pkgname=python3-pytest version=6.2.4 revision=2 wrksrc="pytest-${version}" build_style=python3-module hostmakedepends="python3-setuptools_scm python3-toml python3-Sphinx" depends="python3-py python3-packaging python3-attrs python3-more-itertools python3-atomicwrites python3-pluggy python3-wcwidth python3-setuptools python3-iniconfig python3-toml" checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock python3-nose python3-requests python3-parsing python3-xmlschema" short_desc="Simple powerful testing with Python 3" maintainer="Piotr Wójcik " 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=50bcad0a0b9c5a72c8e4e7c9855a3ad496ca6a881a3641b4260605450772c54b alternatives=" pytest:pytest:/usr/bin/pytest3 pytest:py.test:/usr/bin/py.test3" post_patch() { # 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() { PYTHONPATH=$(pwd)/build/lib python3 -m pytest \ -k 'not test_color_yes and not test_code_highlight' } post_build() { PYTHONPATH=$(pwd)/build/lib/ make -C doc/en man vman doc/en/_build/man/pytest.1 } post_install() { mv ${DESTDIR}/usr/bin/pytest ${DESTDIR}/usr/bin/pytest3 mv ${DESTDIR}/usr/bin/py.test ${DESTDIR}/usr/bin/py.test3 vlicense LICENSE }