vp-build/srcpkgs/python3-pytest-mock/template

30 lines
834 B
Bash

# Template file for 'python3-pytest-mock'
pkgname=python3-pytest-mock
version=3.5.1
revision=2
wrksrc="${pkgname#*-}-${version}"
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/"
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
checksum=a1e2aba6af9560d313c642dae7e00a2a12b022b80301d9d7fc8ec6858e1dd9fc
# 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
}