Oleg Titov 40a34e7b78 testing/py3-hatch-openzim: new aport
Hatch(ling) plugin for generic openZIM operations
https://github.com/openzim/hatch-openzim
2024-04-18 13:57:28 +00:00

42 lines
1.1 KiB
Plaintext

# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-hatch-openzim
pkgver=0.2.0
pkgrel=0
pkgdesc="Hhatch(ling) plugin for generic openZIM operations"
url="https://github.com/openzim/hatch-openzim/"
arch="noarch"
license="GPL-3.0-or-later"
makedepends="
py3-gpep517
py3-hatch-openzim-bootstrap
py3-hatchling
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest py3-pytest-cov"
subpackages="$pkgname-pyc"
source="py3-hatch-openzim-$pkgver.tar.gz::https://github.com/openzim/hatch-openzim/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/hatch-openzim-$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
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
f14dc236a482495b9d96f9c2a8d9b56c3c39d019caec37304129fab118bdaf7a5f2fa0ed545e874c44515345715049c1ba981abfebb6b57dae995c4d840fdc20 py3-hatch-openzim-0.2.0.tar.gz
"