void-packages/srcpkgs/python-mccabe/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

35 lines
847 B
Bash

# 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 <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() {
noarch=yes
pycompile_module="mccabe.py"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}