backports/py3-hatch-fancy-pypi-readme: now in community

This commit is contained in:
Antoine Martin 2023-11-24 13:24:34 -05:00
parent 6a43138f45
commit c360ae7a79
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,36 +0,0 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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
"