43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Template file for 'python3-pytest'
|
|
pkgname=python3-pytest
|
|
version=7.1.3
|
|
revision=1
|
|
build_style=python3-module
|
|
_common_deps="python3-attrs python3-iniconfig python3-py python3-pluggy"
|
|
hostmakedepends="python3-setuptools_scm python3-wheel python3-Sphinx ${_common_deps}"
|
|
depends="python3-packaging python3-tomli ${_common_deps}"
|
|
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 <chocimier@tlen.pl>"
|
|
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=4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39
|
|
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
|
|
}
|
|
|
|
post_build() {
|
|
PYTHONPATH="$(pwd)/build/lib:${XBPS_CROSS_BASE}/${py3_lib}" make -C doc/en man
|
|
vman doc/en/_build/man/pytest.1
|
|
}
|
|
|
|
do_check() {
|
|
PYTHONPATH="${PWD}/build/lib" python3 -m pytest \
|
|
-k 'not test_color_yes and not test_code_highlight'
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/bin/pytest ${DESTDIR}/usr/bin/pytest3
|
|
mv ${DESTDIR}/usr/bin/py.test ${DESTDIR}/usr/bin/py.test3
|
|
vlicense LICENSE
|
|
}
|