void-packages/srcpkgs/python-coverage/template

27 lines
851 B
Bash

# Template file for 'python-coverage'
pkgname=python-coverage
version=5.0.3
revision=2
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-setuptools"
short_desc="Code coverage testing for Python2"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://bitbucket.org/ned/coveragepy"
distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
alternatives="coverage:coverage:/usr/bin/coverage2"
python3-coverage_package() {
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*
}
}