# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=py3-parver _pkgname=parver pkgver=0.4 pkgrel=0 pkgdesc="Parse and manipulate PEP 440 version numbers" url="https://github.com/RazerM/parver" license="MIT" arch="noarch" depends="python3 py3-arpeggio py3-attrs" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-hypothesis py3-pretend" source="$_pkgname-$pkgver.tar.gz::https://github.com/RazerM/parver/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { PYTHONPATH="$PWD"/build/lib pytest } package() { python3 -m installer -d "$pkgdir" \ dist/parver-$pkgver-py3-none-any.whl } sha512sums=" 3ff9532904712726588b493e6300e8422edf5231774fa01308533e184e66c0e73037aff40be66417de2ad066ac8332a4c62ffabd0bc89cecb29d45ce7b3f2013 parver-0.4.tar.gz "