void-packages/srcpkgs/python-coverage/template

29 lines
911 B
Bash

# Template file for 'python-coverage'
pkgname=python-coverage
version=4.5.3
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="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=9de60893fb447d1e797f6bf08fdf0dbcda0c1e34c1b06c92bd3a363c0ea8c609
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*
}
}