30 lines
889 B
Bash
30 lines
889 B
Bash
|
# Template file for 'python-coverage'
|
||
|
pkgname=python-coverage
|
||
|
version=4.4.2
|
||
|
revision=1
|
||
|
wrksrc="${pkgname/python-//}-${version}"
|
||
|
build_style=python-module
|
||
|
pycompile_module="coverage"
|
||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||
|
depends="python"
|
||
|
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=309d91bd7a35063ec7a0e4d75645488bfab3f0b66373e7722f23da7f5b0f34cc
|
||
|
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"
|
||
|
pkg_install() {
|
||
|
vmove "usr/bin/*3*"
|
||
|
vmove /usr/lib/python3*
|
||
|
}
|
||
|
}
|