summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8906211c1d6e95001c2d43ab259aa626ea701d0 (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
# Maintainer: brodokk <brodokk at brodokk dot space>

_pkgname=flakehell
pkgname=python-$_pkgname

pkgver=0.9.0
pkgrel=1
pkgdesc="Flake8 wrapper to make it nice, legacy-friendly, configurable."

url='https://flakehell.readthedocs.io/'
arch=('any')
license=('MIT')

depends=('python' 'python-attrs' 'python-entrypoints' 'python-typing-extensions' 'python-termcolor' 'python-flake8-quotes' 'python-pygments' 'python-isort' 'python-pylint' 'python-urllib3' 'flake8' 'python-mccabe' 'python-flake8-commas')
makedepends=(python-build python-installer)

source=("https://github.com/flakehell/$_pkgname/archive/refs/tags/v.$pkgver.tar.gz" "dependencies.patch")
sha512sums=('8733d9cf5b19abf6170104837521e2950deeb5ea334e004ff920b4135a243bc51acbe95e907000f57220fbc7589bbaa43745fec27a6e0405dee08792f5dded79'
            'fea190d4b159b1b5e3b6ec29129723597293029a17feea896e47c3ba1bb1e454808d0163b41b7f50197899969ccf3f0e0b7d68e2a3ab2ce75238ff44185ac45e')

prepare() {
    cd "$_pkgname-v.$pkgver"
    patch --forward --input="${srcdir}/dependencies.patch"
}

build() {
    cd "$_pkgname-v.$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_pkgname-v.$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}