39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'pylint'
|
|
pkgname=pylint
|
|
version=2.7.4
|
|
revision=1
|
|
wrksrc="pylint-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-astroid python3-six python3-isort python3-mccabe python3-toml"
|
|
checkdepends="python3-astroid python3-isort python3-mccabe python3-pytest python3-toml"
|
|
short_desc="Python code static checker"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.pylint.org/"
|
|
changelog="https://raw.githubusercontent.com/PyCQA/pylint/master/ChangeLog"
|
|
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
|
|
checksum=bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee
|
|
make_check=no
|
|
|
|
post_install() {
|
|
# no tests
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
|
|
|
# install example config and emacs files
|
|
vsconf examples/pylintrc
|
|
vsconf examples/pylintrc_camelcase
|
|
vsconf elisp/pylint.el
|
|
vsconf elisp/pylint-flymake.el
|
|
|
|
for f in man/*; do
|
|
vman "$f"
|
|
done
|
|
}
|
|
|
|
python3-pylint_package() {
|
|
depends="pylint>=${version}_${revision}"
|
|
build_style=meta
|
|
short_desc+=" (transitional dummy package)"
|
|
}
|