# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-hatch-fancy-pypi-readme _pkgname=${pkgname/py3-/} pkgver=23.1.0 pkgrel=1 pkgdesc="Fancy PyPI READMEs with Hatch" url="https://github.com/hynek/hatch-fancy-pypi-readme" arch="noarch" license="MIT" makedepends="py3-gpep517 py3-installer py3-hatchling py3-hatch-vcs" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/hatch-fancy-pypi-readme/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest -k 'not test_end_to_end.py' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" a26b8205877815292c7c65380f3fff43a3222ec5044556a29fb0b570f0822b548f8f4403cb6a800044671692806b257ecee5f9ec0f3efb597e9a5780a8885424 py3-hatch-fancy-pypi-readme-23.1.0.tar.gz "