projects/aports·blob master · refs

51 lines · 1.2 KiB

1# Contributor: 6543 <[email protected]>
2# Maintainer: 6543 <[email protected]>
3pkgname=check-jsonschema
4pkgver=0.37.4
5pkgrel=0
6pkgdesc="A JSON Schema CLI built on jsonschema. The schema may be specified as a local or remote (HTTP or HTTPS) file"
7url="https://github.com/python-jsonschema/check-jsonschema"
8# s390x: blocked by py3-regress
9arch="all !s390x"
10license="Apache-2.0"
11depends="
12 py3-click
13 py3-jsonschema
14 py3-regress
15 py3-requests
16 py3-ruamel
17 python3
18 "
19makedepends="
20 py3-gpep517
21 py3-setuptools
22 py3-wheel
23 "
24checkdepends="
25 py3-pytest
26 py3-responses
27 "
28subpackages="$pkgname-pyc"
29source="$pkgname-$pkgver.tar.gz::https://github.com/python-jsonschema/check-jsonschema/archive/refs/tags/$pkgver.tar.gz"
30
31options="!check" # check fail but cli work as expected
32
33build() {
34 gpep517 build-wheel \
35 --wheel-dir .dist \
36 --output-fd 3 3>&1 >&2
37}
38
39check() {
40 python3 -m venv --clear --without-pip --system-site-packages .testenv
41 .testenv/bin/python3 -m installer .dist/*.whl
42 .testenv/bin/python3 -m pytest
43}
44
45package() {
46 python3 -m installer -d "$pkgdir" .dist/*.whl
47}
48
49sha512sums="
50d3b067eaf8c81a4539d0f8ca6f0909f94c5e90808eab0d8570c6531223a15472324b634003980b1a3abde3b391c4842fa1adb033155593adeb6c926be011aa25 check-jsonschema-0.37.4.tar.gz
51"