void-packages/srcpkgs/pylint/template
2020-10-10 10:22:16 -04:00

37 lines
1 KiB
Bash

# Template file for 'pylint'
pkgname=pylint
version=2.6.0
revision=3
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/"
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)"
}