28 lines
911 B
Bash
28 lines
911 B
Bash
# Template file for 'python-coverage'
|
|
pkgname=python-coverage
|
|
version=4.5.2
|
|
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=ab235d9fe64833f12d1334d29b558aacedfbca2356dfb9691f2d0d38a8a7bfb4
|
|
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*
|
|
}
|
|
}
|