1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/py3-hatch-fancy-pypi-readme/APKBUILD

36 lines
1.1 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-hatch-fancy-pypi-readme
_pkgname=${pkgname/py3-/}
pkgver=25.1.0
pkgrel=0
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="
0d882a2203f69e0c65c93e23b3ad04627e31695a106a4c93dbe8e4483f514497646944d3788ea2a9d534b68410b2b4511b49fd6b870ee3d8b2c024fc0c654cab py3-hatch-fancy-pypi-readme-25.1.0.tar.gz
"