aports/community/py3-jsonschema-specifications/APKBUILD
znley 1d4ba6ce94 community/py3-jsonschema: enable on loongarch64
py3-jsonschema can pass build on loongarch due to !67529.
2024-07-08 03:45:06 +00:00

46 lines
1.2 KiB
Plaintext

# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=py3-jsonschema-specifications
pkgver=2023.12.1
pkgrel=1
pkgdesc="Support files exposing JSON from the JSON Schema specifications to Python"
url="https://github.com/python-jsonschema/jsonschema-specifications"
arch="noarch"
license="MIT"
depends="
py3-referencing
"
makedepends="
py3-gpep517
py3-hatch-vcs
py3-hatchling
"
checkdepends="
py3-pytest
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-jsonschema/jsonschema-specifications/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jsonschema-specifications-$pkgver"
build() {
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
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
rm -r "$pkgdir"/usr/lib/python*/site-packages/jsonschema_specifications/tests/
}
sha512sums="
2731562df17e09858da29eadaac6ed60e8ee981e57efd74c2ec361241ccd45ade6bb5b7490a197668231a58206232e7a09132fe8932cf190ef4a124aa65db470 py3-jsonschema-specifications-2023.12.1.tar.gz
"