2017-11-07 07:19:19 +01:00
|
|
|
# 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"
|
2017-11-18 16:30:11 +01:00
|
|
|
depends="python-setuptools"
|
2017-11-07 07:19:19 +01:00
|
|
|
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"
|
2017-11-18 16:30:11 +01:00
|
|
|
depends="python3-setuptools"
|
2017-11-07 07:19:19 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/bin/*3*"
|
|
|
|
vmove /usr/lib/python3*
|
|
|
|
}
|
|
|
|
}
|