# Maintainer: l-koehler # Contributor: Hugo Osvaldo Barrera pkgname="python-flake8-comprehensions" _pkgname="flake8-comprehensions" pkgver=3.14.0 pkgrel=1 pkgdesc="Flake8 plugin to help you write better list/set/dict comprehensions." arch=('any') url="https://github.com/adamchainz/${_pkgname}" license=('MIT') depends=('flake8') makedepends=('python-setuptools' 'python-build' 'python-wheel' 'python-installer') source=("https://github.com/adamchainz/flake8-comprehensions/archive/$pkgver.tar.gz") md5sums=('f3aae548e7b29ae8ccb51fa43630dca0') build() { cd "${_pkgname}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${_pkgname}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }