void-packages/srcpkgs/python3-parameterized/template

27 lines
920 B
Bash

# Template file for 'python3-parameterized'
pkgname=python3-parameterized
version=0.9.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
depends="python3"
checkdepends="python3-mock"
short_desc="Parameterized testing with any Python test framework"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause-Views"
homepage="https://github.com/wolever/parameterized"
changelog="https://raw.githubusercontent.com/wolever/parameterized/master/CHANGELOG.txt"
distfiles="${PYPI_SITE}/p/parameterized/parameterized-${version}.tar.gz"
checksum=7fc905272cefa4f364c1a3429cbbe9c0f98b793988efb5bf90aac80f08db09b1
do_check() {
# errs with pytest4 - not supported by upstream
# https://github.com/wolever/parameterized/blob/v0.9.0/tox.ini#L12
python3 -m unittest parameterized.test
}
post_install() {
rm "${DESTDIR}/${py3_sitelib}/parameterized/test.py"
vlicense LICENSE.txt
}