30 lines
888 B
Bash
30 lines
888 B
Bash
# Template file for 'python3-pytest-mock'
|
|
pkgname=python3-pytest-mock
|
|
version=3.9.0
|
|
revision=2
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-pytest"
|
|
checkdepends="$depends"
|
|
short_desc="Thin-wrapper around mock for easier use with py.test (Python3)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/pytest-dev/pytest-mock/"
|
|
changelog="https://raw.githubusercontent.com/pytest-dev/pytest-mock/main/CHANGELOG.rst"
|
|
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
|
|
checksum=c899a0dcc8a5f22930acd020b500abd5f956911f326864a3b979e4866e14da82
|
|
|
|
# pytest-mock requires pytest-mock to be installed so it'll always fail during
|
|
# packaging
|
|
make_check=no
|
|
|
|
pre_build() {
|
|
vsed -i setup.py \
|
|
-e '/setup_requires=/d' \
|
|
-e "s|use_scm_version=.*|version='${version}',|"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|