aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pylint/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-pylint/APKBUILD')
-rw-r--r--community/py3-pylint/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/py3-pylint/APKBUILD b/community/py3-pylint/APKBUILD
new file mode 100644
index 0000000000..309121eae5
--- /dev/null
+++ b/community/py3-pylint/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-pylint
+pkgver=2.8.2
+pkgrel=0
+pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
+url="https://github.com/PyCQA/pylint"
+arch="noarch"
+license="GPL-2.0-or-later"
+depends="
+ py3-astroid
+ py3-isort
+ py3-mccabe
+ py3-toml
+ "
+makedepends="py3-setuptools"
+checkdepends="
+ py3-pytest
+ py3-pytest-runner
+ "
+options="!check" # https://github.com/PyCQA/pylint/issues/3895
+source="https://files.pythonhosted.org/packages/source/p/pylint/pylint-$pkgver.tar.gz
+ no_setuptools_scm.patch
+ "
+builddir="$srcdir"/pylint-$pkgver
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ # Requires unpackaged 'pytest-benchmark'
+ rm -rf tests/benchmark
+# PYTHONPATH="$PWD/build/lib" py.test-3
+ python3 setup.py pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="
+304cb32fc72a6efe89d3d6799b1bf5ffa2a16220b99d8f0aa39753aeea907c88ed81ddebfc4de91be33243dd47dd1bcde4077fb6428f6fa4fe80636c77be907e pylint-2.8.2.tar.gz
+d3ec0c6acf7a3d32f30fe1dce1710e816b97de6e694c52097e4d5b3dc4edbbc04b93be56147dd7e4da6a34c9545328fa8b1b7db023434b74897e79c09b23b464 no_setuptools_scm.patch
+"