23 lines
686 B
Bash
23 lines
686 B
Bash
# Template file for 'flake8'
|
|
pkgname=flake8
|
|
version=2.4.1
|
|
revision=2
|
|
noarch=yes
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools"
|
|
depends="${hostmakedepends} pep8 pyflakes mccabe"
|
|
pycompile_module="flake8"
|
|
short_desc="The modular source code checker: pep8, pyflakes, mccabe"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://gitlab.com/pycqa/flake8"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
|
|
checksum=2e7ebbe59d8c85e626e36d99f0db2f578394313d3f7ce9dc9f1da57ef6cd7537
|
|
|
|
pre_build() {
|
|
# allow pep8 1.6.2 (patched) and pyflakes 0.9
|
|
sed -i '/pep8/s|, != 1.6.2||;/pyflakes/s|, < 0.9||' setup.py
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|