# Template file for 'flake8'
pkgname=flake8
version=2.5.4
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=cc1e58179f6cf10524c7bfdd378f5536d0a61497688517791639a5ecc867492f

pre_build() {
	# allow pyflakes 1.1
	sed -i '/pyflakes/s|, < 1.1||' setup.py
}
post_install() {
	vlicense LICENSE
}
