void-packages/srcpkgs/pylint/template
2020-08-26 16:30:57 +02:00

39 lines
1 KiB
Bash

# Template file for 'pylint'
pkgname=pylint
version=2.6.0
revision=1
archs=noarch
wrksrc="pylint-${version}"
build_style=python3-module
pycompile_module="pylint"
hostmakedepends="python3-setuptools"
depends="python3-astroid python3-six python3-isort python3-mccabe"
checkdepends="python3-astroid python3-isort python3-mccabe python3-pytest python3-toml"
short_desc="Python code static checker"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://www.pylint.org/"
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
checksum=bb4a908c9dadbc3aac18860550e870f58e1a02c9f2c204fdf5693d73be061210
do_check() {
# tests fail
: #python3 -m pytest
}
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
}
python3-pylint_package() {
depends="pylint>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}