void-packages/srcpkgs/python-coverage/template

29 lines
908 B
Bash

# Template file for 'python-coverage'
pkgname=python-coverage
version=4.5.4
revision=1
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="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://bitbucket.org/ned/coveragepy"
distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
checksum=e07d9f1a23e9e93ab5c62902833bf3e4b1f65502927379148b6622686223125c
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*
}
}