# Template file for 'python3-jsonschema'
pkgname=python3-jsonschema
version=4.26.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs hatch-fancy-pypi-readme"
depends="python3-attrs python3-jsonschema-specifications python3-referencing
 python3-rpds-py"
checkdepends="${depends} python3-pytest python3-idna python3-jsonpointer
 python3-pip python3-rfc3339-validator python3-rfc3987 python3-jsonpath-ng"
short_desc="Implementation of JSON Schema for Python3"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="MIT"
homepage="https://github.com/Julian/jsonschema"
changelog="https://raw.githubusercontent.com/Julian/jsonschema/master/CHANGELOG.rst"
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
checksum=0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326

post_install() {
	vlicense COPYING LICENSE
	# don't install tests and benchmarks
	rm -r ${DESTDIR}/${py3_sitelib}/jsonschema/tests
	rm -r ${DESTDIR}/${py3_sitelib}/jsonschema/benchmarks
}
