mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-jsonschema
|
|
pkgver=4.4.0
|
|
pkgrel=1
|
|
pkgdesc="An implementation of JSON Schema validation for Python"
|
|
url="https://github.com/Julian/jsonschema"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-pyrsistent py3-attrs py3-six"
|
|
makedepends="py3-build py3-installer py3-setuptools_scm py3-wheel"
|
|
checkdepends="py3-twisted py3-pytest py3-tox"
|
|
source="https://files.pythonhosted.org/packages/source/j/jsonschema/jsonschema-$pkgver.tar.gz"
|
|
builddir="$srcdir/jsonschema-$pkgver"
|
|
|
|
replaces="py-jsonschema" # Backwards compatibility
|
|
provides="py-jsonschema=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 -m build --no-isolation --wheel
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" py.test-3 -v \
|
|
--deselect jsonschema/tests/test_cli.py::TestCLIIntegration::test_license
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/jsonschema-$pkgver-py3-none-any.whl
|
|
|
|
# Add version suffix to executable files.
|
|
local path; for path in "$pkgdir"/usr/bin/*; do
|
|
mv "$path" "$path"-3
|
|
done
|
|
|
|
ln -s jsonschema-3 "$pkgdir"/usr/bin/jsonschema
|
|
}
|
|
|
|
sha512sums="
|
|
8e5c138f4debf7540e2cd131f3f208d1778927ac9036f5fa67bcf5db8c62fe1bb454c7818ee61acef64e856ea4b498ef6ab08be314a3c6b1e461e0bb44db41c7 jsonschema-4.4.0.tar.gz
|
|
"
|