void-packages/srcpkgs/pylint/template

38 lines
1.2 KiB
Bash

# Template file for 'pylint'
pkgname=pylint
version=3.1.0
revision=1
build_style=python3-pep517
make_build_args="--skip-dependency-check"
make_check_args="--deselect=tests/benchmark/test_baseline_benchmarks.py"
hostmakedepends="python3-wheel"
depends="python3-astroid python3-isort python3-mccabe python3-tomlkit
python3-platformdirs python3-dill"
checkdepends="$depends python3-pytest python3-tkinter python3-six
python3-GitPython git"
short_desc="Python code static checker"
maintainer="André L. C. Moreira <andrelcmoreira@disroot.org>"
license="GPL-2.0-or-later"
homepage="https://pylint.pycqa.org"
distfiles="https://github.com/PyCQA/pylint/archive/refs/tags/v$version.tar.gz"
checksum=c4c13c6b77f6604367763f906e5df4e9f4c7fbfa6e8553f31493adfabfc73092
do_check() {
# FIXME: run upstream test suite
# for now, let's just try to verify that pylint can run and dependencies
# are correct
PYTHONPATH=. python3 -m pylint --version
}
post_install() {
# install example config and emacs files
vsconf examples/pylintrc
vsconf examples/pylintrc_camelcase
}
python3-pylint_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}