# Template file for 'python3-jsonschema'
pkgname=python3-jsonschema
version=4.6.1
revision=1
wrksrc="jsonschema-${version}"
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-attrs python3-pyrsistent"
short_desc="Implementation of JSON Schema for Python3"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
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=ec2802e6a37517f09d47d9ba107947589ae1d25ff557b925d83a321fc2aa5d3b
# Tests require jsonschema to be installed already. Setting PYTHONPATH doesn't seem to do trick
make_check=no

pre_build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
}

post_install() {
	vlicense COPYING LICENSE
}
