aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-flake8/APKBUILD
blob: c2770706ec060adb4b252c30ba1ea0c5701a1a12 (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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flake8
_pkgname=flake8
pkgver=3.7.9
pkgrel=0
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://pypi.io/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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="c3c753ad050d8a8f87f7c28c8a1c953ed9bd04f08b09512d9323152b4eebb57d67fbfb0f5317d629174fa12fa234e1a86d6a633dd951fff6a45330b1c4f62850  flake8-3.7.9.tar.gz"