void-packages/srcpkgs/python-pytest-mock/template

31 lines
825 B
Bash

# Template file for 'python-pytest-mock'
pkgname=python-pytest-mock
version=1.7.1
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="pytest_mock"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-pytest"
short_desc="Thin-wrapper around the mock package for easier use with py.test"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/pytest-dev/pytest-mock/"
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
checksum=b879dff61e31fcd4727c227c182f15f222a155293cc64ed5a02d55e0020cf949
noarch=yes
post_install() {
vlicense LICENSE
}
python3-pytest-mock_package() {
noarch=yes
pycompile_module="pytest_mock"
depends="python3-pytest"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}