aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-flake8/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-flake8/APKBUILD')
-rw-r--r--community/py3-flake8/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/community/py3-flake8/APKBUILD b/community/py3-flake8/APKBUILD
index 945561e754..eb05d92cd7 100644
--- a/community/py3-flake8/APKBUILD
+++ b/community/py3-flake8/APKBUILD
@@ -1,9 +1,12 @@
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+# NOTE: ensure compatibility with the current py3-pyflakes! (#11378)
+# NOTE: 3.7.9 crashes with pyflakes 2.2.x, use patched git version as workaround
pkgname=py3-flake8
_pkgname=flake8
-pkgver=3.7.9
-pkgrel=1
+pkgver=3.7.9_git20200411
+pkgrel=0
+_commit="1be8707dc71dbaed8e0b2cb72bfe83a604183a92"
pkgdesc="A modular source code checker"
options="!check" # Some tests fail
url="https://gitlab.com/pycqa/flake8"
@@ -11,8 +14,9 @@ arch="noarch"
license="MIT"
depends="py3-entrypoints py3-pyflakes py3-pycodestyle py3-mccabe py3-setuptools"
checkdepends="py3-pytest py3-pbr py3-atomicwrites py3-attrs py3-pluggy py3-six py3-mock"
-source="https://pypi.io/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$_pkgname-$pkgver"
+source="https://gitlab.com/pycqa/flake8/-/archive/$_commit/flake8-$_commit.tar.bz2
+ 0001-Support-pyflakes-2.2.x.patch"
+builddir="$srcdir/$_pkgname-$_commit"
replaces="py-flake8" # Backwards compatibility
provides="py-flake8=$pkgver-r$pkgrel" # Backwards compatibility
@@ -32,4 +36,5 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="c3c753ad050d8a8f87f7c28c8a1c953ed9bd04f08b09512d9323152b4eebb57d67fbfb0f5317d629174fa12fa234e1a86d6a633dd951fff6a45330b1c4f62850 flake8-3.7.9.tar.gz"
+sha512sums="744a60c352a2888775fddae9b27e0138934e72d6fc21c57769e732fcfddc59e93b61b1bc79d8fa922f44828decd4447ceed6a04688daf4641a79b44d547c9147 flake8-1be8707dc71dbaed8e0b2cb72bfe83a604183a92.tar.bz2
+a5941239449c5a2342057dae3e14f2e120303e3719af32c921d6368ad2f2ecf19ed4cd8090dea7961ceb438a90b93bcaf90decf588a1d0172dcaaae9677b5a72 0001-Support-pyflakes-2.2.x.patch"