void-packages/srcpkgs/python3-mock/template
2022-01-05 22:02:15 +01:00

25 lines
751 B
Bash

# Template file for 'python3-mock'
pkgname=python3-mock
version=4.0.3
revision=3
wrksrc="mock-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest"
short_desc="Python3 mock library"
maintainer="Alex Childs <misuchiru03+void@gmail.com>"
license="BSD-2-Clause"
homepage="http://mock.readthedocs.org/en/latest/"
changelog="https://mock.readthedocs.io/en/latest/changelog.html"
distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz"
checksum=7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc
do_check() {
# The skipped test checks internal Python unittest behavior and fails
python3 -m pytest -k "not test_bool_not_called"
}
post_install() {
vlicense LICENSE.txt
}