37 lines
990 B
Bash
37 lines
990 B
Bash
# Template file for 'pylint'
|
|
pkgname=pylint
|
|
version=2.4.4
|
|
revision=2
|
|
archs=noarch
|
|
wrksrc="pylint-${version}"
|
|
build_style=python3-module
|
|
pycompile_module="pylint"
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-astroid python3-six python3-isort python3-mccabe"
|
|
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=3db5468ad013380e987410a8d6956226963aed94ecb5f9d3a28acca6d9ac36cd
|
|
|
|
pre_build() {
|
|
sed -i '/setup_requires=/d' setup.py
|
|
}
|
|
|
|
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)"
|
|
}
|