aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-flake8/APKBUILD
blob: eb05d92cd70c2111eec11b1278ea83009f978017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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_git20200411
pkgrel=0
_commit="1be8707dc71dbaed8e0b2cb72bfe83a604183a92"
pkgdesc="A modular source code checker"
options="!check" # Some tests fail
url="https://gitlab.com/pycqa/flake8"
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://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

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=$PWD/build/lib py.test-3
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	ln -s flake8 "$pkgdir"/usr/bin/flake8-3

	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="744a60c352a2888775fddae9b27e0138934e72d6fc21c57769e732fcfddc59e93b61b1bc79d8fa922f44828decd4447ceed6a04688daf4641a79b44d547c9147  flake8-1be8707dc71dbaed8e0b2cb72bfe83a604183a92.tar.bz2
a5941239449c5a2342057dae3e14f2e120303e3719af32c921d6368ad2f2ecf19ed4cd8090dea7961ceb438a90b93bcaf90decf588a1d0172dcaaae9677b5a72  0001-Support-pyflakes-2.2.x.patch"