python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / python-pytest-mock / template
blob7b65b88b7ab5b294c49a75eae05d99321d498c43
1 # Template file for 'python-pytest-mock'
2 pkgname=python-pytest-mock
3 version=1.10.0
4 revision=1
5 noarch=yes
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>"
13 license="MIT"
14 homepage="https://github.com/pytest-dev/pytest-mock/"
15 distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
16 checksum=d89a8209d722b8307b5e351496830d5cc5e192336003a485443ae9adeb7dd4c0
18 pre_build() {
19         sed -i setup.py \
20                 -e '/setup_requires=/d' \
21                 -e "s|use_scm_version=.*|version='${version}',|"
24 post_install() {
25         vlicense LICENSE
28 python3-pytest-mock_package() {
29         noarch=yes
30         depends="python3-pytest"
31         pycompile_module="pytest_mock.py _pytest_mock_version.py"
32         short_desc="${short_desc/Python2/Python3}"
33         pkg_install() {
34                 vmove "usr/lib/python3*"
35                 vlicense LICENSE
36         }