python3-jsonschema: update to 4.9.0.

This commit is contained in:
Jan Christian Grünhage 2022-07-21 10:29:53 +02:00 committed by Michal Vasilek
parent b32e07de6c
commit e2e3cfeb46
1 changed files with 12 additions and 4 deletions

View File

@ -1,20 +1,28 @@
# Template file for 'python3-jsonschema'
pkgname=python3-jsonschema
version=4.6.1
version=4.9.0
revision=1
wrksrc="jsonschema-${version}"
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-attrs python3-pyrsistent"
checkdepends="${depends} python3-pytest"
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
checksum=df10e65c8f3687a48e93d0d348ce0ce5f897b5a28e9bbcbbe8f7c7eaf019e850
do_check() {
rm -rf *.dist-info tmp # remove artifacts from previous unsuccessful check run
pip install --no-deps --target tmp ./jsonschema-$version-py3-none-any.whl
rm tmp/jsonschema/tests -rf
mv tmp/*.dist-info .
PYTHONPATH=. pytest
rm -rf *.dist-info tmp
}
pre_build() {
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"