From 457c17bb7e1f3eebc0e83b8b967d57239066ac81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 21 Jul 2022 10:29:53 +0200 Subject: [PATCH] python3-jsonschema: update to 4.9.0. --- srcpkgs/python3-jsonschema/template | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-jsonschema/template b/srcpkgs/python3-jsonschema/template index a1dd7ff5d073c6..173a5d1cc78c0a 100644 --- a/srcpkgs/python3-jsonschema/template +++ b/srcpkgs/python3-jsonschema/template @@ -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 " 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}"