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:
parent
e5d2c40096
commit
2c8f830569
1 changed files with 8 additions and 4 deletions
|
@ -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}',|"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue