8ddd61d984
[ci skip]
37 lines
1 KiB
Bash
37 lines
1 KiB
Bash
# Template file for 'python-pytest-mock'
|
|
pkgname=python-pytest-mock
|
|
version=1.10.1
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="${pkgname/python-//}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pytest_mock.py _pytest_mock_version.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-pytest python-mock"
|
|
short_desc="Thin-wrapper around mock for easier use with py.test (Python2)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/pytest-dev/pytest-mock/"
|
|
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
|
|
checksum=4d0d06d173eecf172703219a71dbd4ade0e13904e6bbce1ce660e2e0dc78b5c4
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e '/setup_requires=/d' \
|
|
-e "s|use_scm_version=.*|version='${version}',|"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pytest-mock_package() {
|
|
archs=noarch
|
|
depends="python3-pytest"
|
|
pycompile_module="pytest_mock.py _pytest_mock_version.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove "usr/lib/python3*"
|
|
vlicense LICENSE
|
|
}
|
|
}
|