[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/46: gnu: python-jsonschema: Update to 4.22.0.
From: |
guix-commits |
Subject: |
18/46: gnu: python-jsonschema: Update to 4.22.0. |
Date: |
Tue, 7 May 2024 18:34:01 -0400 (EDT) |
rekado pushed a commit to branch python-team
in repository guix.
commit 17ee7cc6bfaddcbe742f12ed79457d14b7732ce5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue May 7 13:11:06 2024 +0200
gnu: python-jsonschema: Update to 4.22.0.
* gnu/packages/python-xyz.scm (python-jsonschema): Update to 4.22.0.
[arguments]: Remove custom 'check phase; remove 'pretend-version phase; add
'pre-check and 'patch-pyproject phases.
[native-inputs]: Add python-hatchling, python-hatch-fancy-pypi-readme,
python-hatch-vcs, and python-pytest; remove python-setuptools-scm,
python-twisted, python-setuptools, and python-wheel.
[propagated-inputs]: Remove python-importlib-metadata, python-pyrsistent,
and
python-typing-extensions; add python-fqdn, python-idna,
python-importlib-resources, python-isoduration, python-jsonpointer,
python-jsonschema-specifications, python-rfc3339-validator,
python-rfc3986-validator, python-referencing-bootstrap,
python-rpds-py, python-uri-template, and python-webcolors.
(python-jsonschema-3)[propagated-inputs]: Override.
[native-inputs]: Override.
Change-Id: I4eccd4b92bcf84458616a64864981befa3541146
---
gnu/packages/python-xyz.scm | 54 ++++++++++++++++++++++++++++-----------------
1 file changed, 34 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3a386fd112..fe3b294359 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5699,38 +5699,44 @@ and convert DDL to BigQuery JSON schema.")
(define-public python-jsonschema
(package
(name "python-jsonschema")
- ;; XXX: Update to the latest version requires new build system - Hatch
- ;; https://hatch.pypa.io/
- (version "4.5.1")
+ (version "4.22.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsonschema" version))
(sha256
- (base32 "1z0x22691jva7lwfcfh377jdmlz68zhiawxzl53k631l34k8hvbw"))))
+ (base32 "1dx2c7vgsqas61mj00b6ix75cvax5s32qmchz6d12darlhsd88jv"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
- (add-before 'build 'pretend-version
- ;; The version string is usually derived via setuptools-scm, but
- ;; without the git metadata available, the version string is set to
- ;; '0.0.0'.
+ (add-after 'unpack 'patch-pyproject
(lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "JSON_SCHEMA_TEST_SUITE" "json")
- (invoke "trial" "jsonschema")))))))
- (native-inputs (list python-setuptools-scm python-twisted
- python-setuptools python-wheel))
+ ;; The build system does not like this.
+ (substitute* "pyproject.toml"
+ ((" \"Topic :: File Formats.*") ""))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "JSON_SCHEMA_TEST_SUITE" "json"))))))
+ (native-inputs (list python-hatchling
+ python-hatch-fancy-pypi-readme
+ python-hatch-vcs
+ python-pytest))
(propagated-inputs
(list python-attrs
- python-importlib-metadata
- python-pyrsistent
- python-typing-extensions))
+ python-fqdn
+ python-idna
+ python-importlib-resources
+ python-isoduration
+ python-jsonpointer
+ python-jsonschema-specifications
+ python-rfc3339-validator
+ python-rfc3986-validator
+ python-referencing-bootstrap
+ python-rpds-py
+ python-uri-template
+ python-webcolors))
(home-page "https://github.com/Julian/jsonschema")
(synopsis "Implementation of JSON Schema for Python")
(description
@@ -5753,7 +5759,15 @@ and convert DDL to BigQuery JSON schema.")
#~(modify-phases #$phases
(replace 'pretend-version
(lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))))))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))))
+ (propagated-inputs
+ (list python-attrs
+ python-importlib-metadata
+ python-pyrsistent
+ python-typing-extensions))
+ (native-inputs
+ (list python-setuptools-scm python-twisted
+ python-setuptools python-wheel))))
(define-public python-jsonschema-specifications
(package
- 30/46: gnu: python-jupyter-client: Update to 7.4.4., (continued)
- 30/46: gnu: python-jupyter-client: Update to 7.4.4., guix-commits, 2024/05/07
- 35/46: gnu: Add python-jupyter-server-terminals., guix-commits, 2024/05/07
- 33/46: gnu: python-notebook: Update to 6.5.7., guix-commits, 2024/05/07
- 38/46: gnu: python-tabulate: Add Setuptools and Wheel., guix-commits, 2024/05/07
- 15/46: gnu: python-jedi: Update to 0.19.1., guix-commits, 2024/05/07
- 08/46: gnu: Add python-fqdn., guix-commits, 2024/05/07
- 11/46: gnu: Add python-pytest-jupyter., guix-commits, 2024/05/07
- 14/46: gnu: python-attrs: Update to 23.2.0., guix-commits, 2024/05/07
- 16/46: gnu: python-send2trash: Update to 1.8.2., guix-commits, 2024/05/07
- 17/46: gnu: python-argon2-cffi: Update to 21.1.0., guix-commits, 2024/05/07
- 18/46: gnu: python-jsonschema: Update to 4.22.0.,
guix-commits <=
- 19/46: gnu: python-websocket-client: Update to 1.8.0., guix-commits, 2024/05/07
- 20/46: gnu: python-prometheus-client: Update to 0.20.0., guix-commits, 2024/05/07
- 21/46: gnu: python-pytest-tornasync: Use Tornado 6., guix-commits, 2024/05/07
- 23/46: gnu: python-pyzmq: Use Tornado 6., guix-commits, 2024/05/07
- 24/46: gnu: python-jupyter-core: Update to 5.7.2., guix-commits, 2024/05/07
- 26/46: gnu: python-ipykernel: Set environment variable., guix-commits, 2024/05/07
- 28/46: gnu: python-nbconvert: Use pyproject-build-system., guix-commits, 2024/05/07
- 31/46: gnu: python-json-logger: Update to 2.0.7., guix-commits, 2024/05/07
- 39/46: gnu: python-openapi-schema-validator: Update to 0.6.2., guix-commits, 2024/05/07
- 45/46: gnu: Add python-jsonschema-path., guix-commits, 2024/05/07