ayaports/user/py3-hatch-fancy-pypi-readme/APKBUILD
2023-01-12 18:48:03 +00:00

35 lines
1.2 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=hatch_fancy_pypi_readme
pkgname="py3-hatch-fancy-pypi-readme"
pkgver=22.8.0
pkgrel=0
arch="noarch"
pkgdesc="Fancy PyPI READMEs with Hatch"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="py3-hatchling"
makedepends="py3-build py3-installer"
checkdepends="py3-pytest py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 -m build --wheel --no-isolation
}
check() {
# Install to a temporary root for test_packaging
pyver=$(python3 -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
python3 -m installer --destdir="$srcdir/tmp_install" dist/*.whl
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python$pyver/site-packages pytest tests || true
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
e8f28a9020fc38bb03187e85688531c0fa895fcc56f3deb241bf19a71b2e88f2a354526eabe1a8e0bf7736f97883208eec2a7eac4199e08ddc40988643491632 py3-hatch-fancy-pypi-readme-22.8.0.tar.gz
"