1 # Template file for 'python-pytest-mock'
2 pkgname=python-pytest-mock
6 wrksrc="${pkgname/python-//}-${version}"
7 build_style=python-module
8 pycompile_module="pytest_mock.py _pytest_mock_version.py"
9 hostmakedepends="python-setuptools python3-setuptools"
10 depends="python-pytest python-mock"
11 short_desc="Thin-wrapper around mock for easier use with py.test (Python2)"
12 maintainer="Orphaned <orphan@voidlinux.eu>"
14 homepage="https://github.com/pytest-dev/pytest-mock/"
15 distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
16 checksum=d89a8209d722b8307b5e351496830d5cc5e192336003a485443ae9adeb7dd4c0
20 -e '/setup_requires=/d' \
21 -e "s|use_scm_version=.*|version='${version}',|"
28 python3-pytest-mock_package() {
30 depends="python3-pytest"
31 pycompile_module="pytest_mock.py _pytest_mock_version.py"
32 short_desc="${short_desc/Python2/Python3}"
34 vmove "usr/lib/python3*"