| 1 | # Contributor: Fabian Affolter <[email protected]> |
| 2 | # Maintainer: Fabian Affolter <[email protected]> |
| 3 | pkgname=py3-flake8-snippets |
| 4 | _pkgname=flake8-snippets |
| 5 | pkgver=0.2 |
| 6 | pkgrel=9 |
| 7 | pkgdesc="Extension for flake8 which lint for code snippets" |
| 8 | url="https://github.com/bitlabstudio/flake8-snippets" |
| 9 | arch="noarch" |
| 10 | license="MIT" |
| 11 | depends="py3-flake8" |
| 12 | makedepends="py3-setuptools py3-gpep517 py3-wheel" |
| 13 | subpackages="$pkgname-pyc" |
| 14 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" |
| 15 | builddir="$srcdir"/$_pkgname-$pkgver |
| 16 | |
| 17 | replaces="py-flake8-snippets" # Backwards compatibility |
| 18 | provides="py-flake8-snippets=$pkgver-r$pkgrel" # Backwards compatibility |
| 19 | |
| 20 | build() { |
| 21 | gpep517 build-wheel \ |
| 22 | --wheel-dir .dist \ |
| 23 | --output-fd 3 3>&1 >&2 |
| 24 | } |
| 25 | |
| 26 | package() { |
| 27 | gpep517 install-wheel --destdir "$pkgdir" \ |
| 28 | .dist/*.whl |
| 29 | } |
| 30 | |
| 31 | sha512sums="b7a3a335770912da9c162cb002550c299034e08c40b9b64d352b048650d1fe772508b1a226b873e65b8f6fea856fd2a2099e6bb84bc1e121730d19d32eae5e21 flake8-snippets-0.2.tar.gz" |