aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/python3-mock/template
blob: 4c86c018bb1d54a2453b211b95f934967af4d286 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Template file for 'python3-mock'
pkgname=python3-mock
version=4.0.3
revision=1
wrksrc="mock-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
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
}