void-packages/srcpkgs/python-mccabe/template
2016-12-15 11:11:53 +01:00

42 lines
1 KiB
Bash

# Template file for 'python-mccabe'
pkgname=python-mccabe
version=0.5.3
revision=1
noarch=yes
replaces="mccabe>=0"
wrksrc="mccabe-${version}"
build_style=python-module
pycompile_module="mccabe.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="McCabe complexity checker for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/PyCQA/mccabe"
license="MIT"
distfiles="${PYPI_SITE}/m/mccabe/mccabe-${version}.tar.gz"
checksum=16293af41e7242031afd73896fef6458f4cad38201d21e28f344fff50ae1c25e
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
post_install() {
vlicense LICENSE
}
python3-mccabe_package() {
noarch=yes
pycompile_module="mccabe.py"
replaces="python3.4-mccabe>=0"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-mccabe_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-mccabe>=${version}_${revision}"
}