Subject: [bug#56028] [PATCH] gnu: Add python-pydantic-cli.

From: jgart <[email-masked]>
Date: Thu, 16 Jun 2022 16:43:19 -0500

* gnu/packages/python-xyz.scm (python-pydantic-cli): New variable.
---
 gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 63a3eb2a80..394c54a986 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5018,6 +5018,30 @@ (define-public python-pydantic
 errors when data is invalid.")
     (license license:expat)))
 
+(define-public python-pydantic-cli
+  (package
+    (name "python-pydantic-cli")
+    (version "4.3.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pydantic_cli" version))
+        (sha256
+          (base32 "1068zki5fvdm2lhqfqhjf325kmr8v5qiwadcl5b5dy84xzhs8hvf"))))
+    (build-system python-build-system)
+    (propagated-inputs
+      (list python-pydantic))
+    (native-inputs
+      (list python-black
+            python-mypy
+            python-pytest))
+    (home-page "http://github.com/mpkocher/pydantic-cli")
+    (synopsis "Turn Pydantic defined Data Models into CLI Tools")
+    (description
+"Turn @code{python-pydantic} defined data models into CLI Tools and
+enable loading values from JSON files.")
+    (license license:expat)))
+
 (define-public python-pydocstyle
   (package
     (name "python-pydocstyle")
-- 
2.36.1