6edfbb3f50
Closes: #25477 [via git-merge-pr]
30 lines
907 B
Bash
30 lines
907 B
Bash
# Template file for 'flake8'
|
|
pkgname=flake8
|
|
version=3.8.4
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-setuptools python3-pycodestyle>=2.6.0<2.7.0
|
|
python3-pyflakes>=2.2.0<2.3.0 python3-mccabe>=0.6.0<0.7.0
|
|
python3-entrypoints>=0.3<0.4"
|
|
checkdepends="python3-mock python3-pycodestyle python3-pytest python3-pyflakes"
|
|
short_desc="Modular source code checker: pycodestyle, pyflakes, mccabe"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://gitlab.com/pycqa/flake8"
|
|
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
|
|
checksum=aadae8761ec651813c24be05c6f7b4680857ef6afaae4651a4eccaef97ce6c3b
|
|
|
|
do_check() {
|
|
PYTHONPATH="${wrksrc}/src" python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-flake8_package() {
|
|
build_style=meta
|
|
short_desc+=" (transitional dummy package)"
|
|
depends="flake8>=${version}_${revision}"
|
|
}
|