void-packages/srcpkgs/python-coverage/template
maxice8 cf212bd1c2 python-coverage: update to 4.5.1.
Closes: #11381 [via git-merge-pr]
2018-03-06 20:00:46 -08:00

29 lines
911 B
Bash

# Template file for 'python-coverage'
pkgname=python-coverage
version=4.5.1
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="coverage"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Code coverage testing for Python2"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="Apache-2.0"
homepage="https://bitbucket.org/ned/coveragepy"
distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
checksum=56e448f051a201c5ebbaa86a5efd0ca90d327204d8b059ab25ad0f35fbfd79f1
alternatives="python-coverage:coverage:/usr/bin/coverage2"
noarch=yes
python3-coverage_package() {
noarch=yes
pycompile_module="coverage"
short_desc="${short_desc/Python2/Python3}"
alternatives="python-coverage:coverage:/usr/bin/coverage3"
depends="python3-setuptools"
pkg_install() {
vmove "usr/bin/*3*"
vmove /usr/lib/python3*
}
}