1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-fastjsonschema/APKBUILD
2023-03-04 08:35:21 +00:00

38 lines
1.3 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-fastjsonschema
pkgver=2.16.3
pkgrel=0
pkgdesc="Fast JSON schema validator"
url="https://horejsek.github.io/python-fastjsonschema/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
checkdepends="py3-pytest py3-pytest-benchmark"
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-installer"
source="$pkgname-$pkgver.tar.gz::https://github.com/horejsek/python-fastjsonschema/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/python-fastjsonschema-$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 \
--deselect tests/test_compile_to_code.py::test_compile_to_code_custom_format_with_refs \
--deselect tests/test_compile_to_code.py::test_compile_to_code_ipv6_regex \
--deselect tests/test_compile_to_code.py::test_compile_to_code_custom_format
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
2e26f31f9c6966e77f70b8ca584e672d554219b6bbb4811e3ac8dff1c693b2638ef08b8b9011e0db6f739be02e2f41a35d15bcfc42a9cb06ddb4521e51f37d8a py3-fastjsonschema-2.16.3.tar.gz
"