mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
python3-jsonschema: update to 4.9.0.
This commit is contained in:
parent
b32e07de6c
commit
e2e3cfeb46
1 changed files with 12 additions and 4 deletions
|
@ -1,20 +1,28 @@
|
||||||
# Template file for 'python3-jsonschema'
|
# Template file for 'python3-jsonschema'
|
||||||
pkgname=python3-jsonschema
|
pkgname=python3-jsonschema
|
||||||
version=4.6.1
|
version=4.9.0
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="jsonschema-${version}"
|
wrksrc="jsonschema-${version}"
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
hostmakedepends="hatchling hatch-vcs"
|
hostmakedepends="hatchling hatch-vcs"
|
||||||
depends="python3-attrs python3-pyrsistent"
|
depends="python3-attrs python3-pyrsistent"
|
||||||
|
checkdepends="${depends} python3-pytest"
|
||||||
short_desc="Implementation of JSON Schema for Python3"
|
short_desc="Implementation of JSON Schema for Python3"
|
||||||
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/Julian/jsonschema"
|
homepage="https://github.com/Julian/jsonschema"
|
||||||
changelog="https://raw.githubusercontent.com/Julian/jsonschema/master/CHANGELOG.rst"
|
changelog="https://raw.githubusercontent.com/Julian/jsonschema/master/CHANGELOG.rst"
|
||||||
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
||||||
checksum=ec2802e6a37517f09d47d9ba107947589ae1d25ff557b925d83a321fc2aa5d3b
|
checksum=df10e65c8f3687a48e93d0d348ce0ce5f897b5a28e9bbcbbe8f7c7eaf019e850
|
||||||
# Tests require jsonschema to be installed already. Setting PYTHONPATH doesn't seem to do trick
|
|
||||||
make_check=no
|
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() {
|
pre_build() {
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue