# Template file for 'python-pyflakes'
pkgname=python-pyflakes
version=2.2.0
revision=1
archs=noarch
wrksrc="pyflakes-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Passive checker of Python programs (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/PyCQA/pyflakes"
distfiles="${PYPI_SITE}/p/pyflakes/pyflakes-${version}.tar.gz"
checksum=35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8
alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2"

post_install() {
	vlicense LICENSE
}

python3-pyflakes_package() {
	archs=noarch
	depends="python3-setuptools"
	short_desc="${short_desc/Python2/Python3}"
	alternatives="pyflakes:pyflakes:/usr/bin/pyflakes3"
	pkg_install() {
		vmove usr/bin/*3
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
