34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'flake8'
|
|
pkgname=flake8
|
|
version=4.0.1
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-pycodestyle python3-pyflakes python3-mccabe"
|
|
checkdepends="$depends python3-mock python3-pytest"
|
|
short_desc="Modular source code checker: pycodestyle, pyflakes, mccabe"
|
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
|
license="MIT"
|
|
homepage="https://gitlab.com/pycqa/flake8"
|
|
changelog="https://raw.githubusercontent.com/PyCQA/flake8/master/docs/source/release-notes/$version.rst"
|
|
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
|
|
checksum=806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d
|
|
|
|
do_check() {
|
|
# from alpine
|
|
PYTHONPATH=build/lib python3 -m pytest \
|
|
--deselect=tests/integration/test_api_legacy.py::test_legacy_api \
|
|
--deselect=tests/integration/test_main.py \
|
|
--deselect=tests/integration/test_plugins.py
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-flake8_package() {
|
|
build_style=meta
|
|
short_desc+=" (transitional dummy package)"
|
|
depends="flake8>=${version}_${revision}"
|
|
}
|