guix-commits
[Top][All Lists]
Advanced

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

16/57: gnu: Add python-strictyaml.


From: guix-commits
Subject: 16/57: gnu: Add python-strictyaml.
Date: Thu, 19 Dec 2024 06:31:37 -0500 (EST)

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

commit fda17663e24d0442369d875c77b943fd4a143d18
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Dec 16 17:03:54 2024 +0100

    gnu: Add python-strictyaml.
    
    * gnu/packages/serialization.scm (python-strictyaml): New variable.
    
    Change-Id: I41beff94cca813469c6362285973455ed8e8bd67
---
 gnu/packages/serialization.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 526e9316ad..18032b2f86 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -68,7 +68,8 @@
   #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-check)
   #:use-module (gnu packages python-science)
-  #:use-module (gnu packages python-xyz))
+  #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages time))
 
 (define-public avro-cpp-1.9
   (package
@@ -847,6 +848,25 @@ style and key ordering are kept, so you can diff the 
source.")
 @code{ruamel.yaml} derived from libyaml.")
     (license license:expat)))
 
+(define-public python-strictyaml
+  (package
+    (name "python-strictyaml")
+    (version "1.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "strictyaml" version))
+       (sha256
+        (base32 "01y4hrakk1psdj6ir5k70apqkjjipvja0c40pbfvahmbzjjm9y12"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-dateutil python-ruamel.yaml))
+    (native-inputs (list python-setuptools python-wheel))
+    (home-page "https://pypi.org/project/strictyaml/";)
+    (synopsis "Strict, typed YAML parser")
+    (description "StrictYAML is a type-safe YAML parser that parses and
+validates a restricted subset of the YAML specification.")
+    (license license:expat)))
+
 (define-public python-cbor
   (package
     (name "python-cbor")



reply via email to

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