# Template file for 'python-mccabe' pkgname=python-mccabe version=0.6.1 revision=2 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 " homepage="https://github.com/PyCQA/mccabe" license="MIT" distfiles="${PYPI_SITE}/m/mccabe/mccabe-${version}.tar.gz" checksum=dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f 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}" }