# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-jsonschema _pkgname=jsonschema pkgver=3.0.2 pkgrel=2 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-setuptools py3-six" checkdepends="py3-twisted py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-jsonschema" # Backwards compatibility provides="py-jsonschema=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 -m unittest } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" # 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="13b65f318e1e2dc4a1d61399d517d39e53b0da71fbb5ec116e3b4ee274694300c6e2b3545058cd9f15129633fd093fa2d0c21ef1cce5356ca78e74187e7045c3 jsonschema-3.0.2.tar.gz"