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