aports/community/py3-jsonschema-path/APKBUILD
Celeste a2bd408c8e */py3-<various>: enable on loongarch64
also, remove disable reason comment leftover from previous commit
2024-07-14 03:31:43 +00:00

54 lines
1.2 KiB
Plaintext

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-jsonschema-path
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=jsonschema-path
pkgver=0.3.3
pkgrel=0
pkgdesc="Object-oriented JSONSchema"
url="https://github.com/p1c2u/jsonschema-path"
arch="noarch"
license="Apache-2.0"
depends="
py3-jsonschema
py3-pathable
py3-yaml
py3-requests
py3-referencing
"
checkdepends="
py3-pytest
py3-pytest-cov
py3-responses
"
makedepends="
poetry
py3-setuptools
py3-gpep517
py3-wheel
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/p1c2u/jsonschema-path/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$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 "$builddir"/.dist/*.whl
.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
846d476285b4c89d0241d18be09eb7c12df855f7b28f0d3ea9942a9d23977f3c051b93a1281f6f5323c2c4bc9c86fe82b5eae1bce647f58d9d2acce65d4f54a8 py3-jsonschema-path-0.3.3.tar.gz
"