guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

66/361: gnu: Add python-jsonschema-specifications.


From: guix-commits
Subject: 66/361: gnu: Add python-jsonschema-specifications.
Date: Fri, 22 Nov 2024 06:00:13 -0500 (EST)

andreas pushed a commit to branch python-team
in repository guix.

commit 732d9cb5e3471e2c7167d9ecd09673afce10c511
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue May 7 13:08:46 2024 +0200

    gnu: Add python-jsonschema-specifications.
    
    * gnu/packages/python-xyz.scm (python-jsonschema-specifications): New 
variable.
    
    Change-Id: If1f7fa0d4e0bc505d9378ce892af298365754daf
---
 gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9a8a8d8ee1..ff64b3504e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6007,6 +6007,39 @@ and convert DDL to BigQuery JSON schema.")
               (lambda _
                 (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))))))
 
+(define-public python-jsonschema-specifications
+  (package
+    (name "python-jsonschema-specifications")
+    (version "2023.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jsonschema_specifications" version))
+       (sha256
+        (base32 "1k348xkq45jx13kmv32ls6k4qvjq3ywd4q0i7zamw3z7nf3ng9s8"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-pyproject
+            (lambda _
+              ;; The build system does not like this.
+              (substitute* "pyproject.toml"
+                (("  \"Topic :: File Formats.*") "")))))))
+    (propagated-inputs (list python-importlib-resources
+                             python-referencing-bootstrap))
+    (native-inputs
+     (list python-hatchling python-hatch-vcs python-pytest))
+    (home-page 
"https://github.com/python-jsonschema/jsonschema-specifications";)
+    (synopsis
+     "JSON Schema meta-schemas and vocabularies, exposed as a Registry")
+    (description
+     "This package provides JSON support files from the JSON Schema
+Specifications (metaschemas, vocabularies, etc.), packaged for runtime access
+from Python as a referencing-based Schema Registry.")
+    (license license:expat)))
+
 (define-public python-schema
   (package
     (name "python-schema")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]