1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-jsonschema-specifications/APKBUILD

46 lines
1.3 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=py3-jsonschema-specifications
pkgver=2025.4.1
pkgrel=0
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="
b00fc37c40cb88e4e698eff63ee389783c939aab67c59692d7d10b817c560d5212d0beeb2559a09ece429aad6d02e1e4711bf4cd59688064ee1e2291d3de2c34 py3-jsonschema-specifications-2025.4.1.tar.gz
"