void-packages/srcpkgs/python-mccabe/template

36 lines
851 B
Bash

# Template file for 'python-mccabe'
pkgname=python-mccabe
version=0.6.1
revision=2
archs=noarch
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=dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
post_install() {
vlicense LICENSE
}
python3-mccabe_package() {
archs=noarch
pycompile_module="mccabe.py"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}