From a3a321cc6d9d245ccc868c968249ff7a4c10c8f5 Mon Sep 17 00:00:00 2001 From: Colin Booth Date: Fri, 19 Feb 2021 00:56:14 -0800 Subject: [PATCH] python3-pytest-mock: update to 3.5.1 Breaking changes: drop deprecated mock alias to mocker drop python 2.7 and 3.4 support --- srcpkgs/python3-pytest-mock/template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template index c1dc8183009..43ce2c84270 100644 --- a/srcpkgs/python3-pytest-mock/template +++ b/srcpkgs/python3-pytest-mock/template @@ -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 " 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}',|" }