python-pytest: require specific version of pluggy

This commit is contained in:
Đoàn Trần Công Danh 2020-03-11 12:56:57 +07:00 committed by Juan RP
parent e5f64f1459
commit 4473fd6c92

View file

@ -1,16 +1,17 @@
# Template file for 'python-pytest'
pkgname=python-pytest
version=4.6.9
revision=1
revision=2
archs=noarch
wrksrc="pytest-${version}"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools
python-pluggy python-py python-setuptools python-pathlib2 python-six
depends="python-atomicwrites python-attrs>=17.4.0 python-funcsigs
python-more-itertools python-pluggy>=0.12.0 python-py>=1.6.0
python-setuptools python-pathlib2 python-six>=1.10.0
python-wcwidth python-hypothesis python-importlib_metadata
python-packaging"
checkdepends="$depends python-mock tox"
checkdepends="$depends python-mock"
short_desc="Simple powerful testing with Python 2"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
@ -26,10 +27,14 @@ post_patch() {
vsed -i setup.py \
-e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version=\"${version}\",|"
# This merely check if pytest executable was generated
rm testing/test_entry_points.py
}
do_check() {
tox -e py27
# Don't use tox, tox will use its own environment instead of system
# package
PYTHONPATH=$(pwd)/build/lib python2 -m pytest
}
post_install() {