python3-pytest-mock: update to 3.5.1

Breaking changes:
drop deprecated mock alias to mocker
drop python 2.7 and 3.4 support
This commit is contained in:
Colin Booth 2021-02-19 00:56:14 -08:00 committed by Érico Nogueira Rolim
parent e5d2c40096
commit 2c8f830569

View file

@ -1,7 +1,7 @@
# Template file for 'python3-pytest-mock'
pkgname=python3-pytest-mock
version=1.10.4
revision=4
version=3.5.1
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
@ -12,10 +12,14 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pytest-dev/pytest-mock/"
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
checksum=5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568
checksum=a1e2aba6af9560d313c642dae7e00a2a12b022b80301d9d7fc8ec6858e1dd9fc
# pytest-mock requires pytest-mock to be installed so it'll always fail during
# packaging
make_check=no
pre_build() {
sed -i setup.py \
vsed -i setup.py \
-e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version='${version}',|"
}