void-packages/srcpkgs/python-coverage/template

28 lines
911 B
Bash

# Template file for 'python-coverage'
pkgname=python-coverage
version=4.5.1
revision=2
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="coverage"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
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="coverage:coverage:/usr/bin/coverage2"
python3-coverage_package() {
pycompile_module="coverage"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="coverage:coverage:/usr/bin/coverage3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
}
}