summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 551d47ee351af36c341c3dce20814b9ecd93537d (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
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-flake8-pyproject
_name=Flake8-pyproject
pkgver=1.2.3
pkgrel=2
pkgdesc="Flake8 plug-in loading the configuration from pyproject.toml"
arch=(any)
url="https://github.com/john-hen/${_name}"
license=('MIT')
groups=()
depends=(flake8)
makedepends=(python-build python-installer python-flit-core)
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=(8f065721c53c1fe22d423d82db99eef6559b463a8701aa03b03668d43abfc851)

build() {
    cd "$srcdir/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

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