python-pytest-mock: update to 1.10.0. (#13278)

Orphaned.
This commit is contained in:
maxice8 2018-06-06 14:25:25 -03:00 committed by Alessio Sergi
parent 12c4a64492
commit 5687a2f5d7

View file

@ -1,7 +1,7 @@
# Template file for 'python-pytest-mock' # Template file for 'python-pytest-mock'
pkgname=python-pytest-mock pkgname=python-pytest-mock
version=1.7.1 version=1.10.0
revision=2 revision=1
noarch=yes noarch=yes
wrksrc="${pkgname/python-//}-${version}" wrksrc="${pkgname/python-//}-${version}"
build_style=python-module build_style=python-module
@ -9,17 +9,18 @@ pycompile_module="pytest_mock.py _pytest_mock_version.py"
hostmakedepends="python-setuptools python3-setuptools" hostmakedepends="python-setuptools python3-setuptools"
depends="python-pytest python-mock" depends="python-pytest python-mock"
short_desc="Thin-wrapper around mock for easier use with py.test (Python2)" short_desc="Thin-wrapper around mock for easier use with py.test (Python2)"
maintainer="maxice8 <thinkabit.ukim@gmail.com>" maintainer="Orphaned <orphan@voidlinux.eu>"
license="MIT" license="MIT"
homepage="https://github.com/pytest-dev/pytest-mock/" homepage="https://github.com/pytest-dev/pytest-mock/"
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz" distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
checksum=b879dff61e31fcd4727c227c182f15f222a155293cc64ed5a02d55e0020cf949 checksum=d89a8209d722b8307b5e351496830d5cc5e192336003a485443ae9adeb7dd4c0
pre_build() { pre_build() {
sed -i setup.py \ sed -i setup.py \
-e '/setup_requires=/d' \ -e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version='${version}',|" -e "s|use_scm_version=.*|version='${version}',|"
} }
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }
@ -30,7 +31,7 @@ python3-pytest-mock_package() {
pycompile_module="pytest_mock.py _pytest_mock_version.py" pycompile_module="pytest_mock.py _pytest_mock_version.py"
short_desc="${short_desc/Python2/Python3}" short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3* vmove "usr/lib/python3*"
vlicense LICENSE vlicense LICENSE
} }
} }