void-packages/srcpkgs/flake8/template
Alessio Sergi bbb38fc7e6 flake8: update to 2.6.0
Add python3.4 flavor.
2016-06-24 19:56:54 +02:00

40 lines
1.1 KiB
Bash

# Template file for 'flake8'
pkgname=flake8
version=2.6.0
revision=1
noarch=yes
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="flake8"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools pycodestyle pyflakes mccabe"
short_desc="The modular source code checker: pep8, pyflakes, mccabe (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://gitlab.com/pycqa/flake8"
license="MIT"
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
checksum=5ae018121a495edeb83097ba1bdd1a8481db24e1f0d54e8a78edb26ba0df82cf
alternatives="flake8:flake8:/usr/bin/flake82.7"
pre_build() {
# remove all caps
sed -i 's/, *< *[0-9=.]*//' setup.py
}
post_install() {
vlicense LICENSE
}
python3.4-flake8_package() {
noarch=yes
pycompile_version="3.4"
pycompile_module="flake8"
depends="python3.4-setuptools python3.4-pycodestyle python3.4-pyflakes
python3.4-mccabe"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="flake8:flake8:/usr/bin/flake83.4"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vlicense LICENSE
}
}