aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-05-07 13:11:06 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:18:39 +0000
commit8348b7c8e949d51e0a4b57135f37d87ccf30214b (patch)
tree46e94564bb199c2f7e30ced1386727bedcfcf68a
parent7347fb453afd6083fee2130f85ed53b590f31ecb (diff)
downloadguix-8348b7c8e949d51e0a4b57135f37d87ccf30214b.tar.gz
guix-8348b7c8e949d51e0a4b57135f37d87ccf30214b.zip
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
-rw-r--r--gnu/packages/python-xyz.scm54
1 files changed, 34 insertions, 20 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 366228eabb..2cb1f03a1d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5991,38 +5991,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
@@ -6045,7 +6051,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