Subject: [bug#45449] [PATCH v2] gnu: Add python-serial.

From: phodina <[email-masked]>
Date: Wed, 03 Nov 2021 08:45:29 +0000

Hi Mathieu,

here's the reworked patch.

Petr

--8<---------------cut here---------------start------------->8---

* gnu/packages/python-xyz.scm (python-serial): New variable.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 32d6b403d4..35c2bffd47 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -94,6 +94,7 @@
 ;;; Copyright © 2020, 2021 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2021 Morgan Smith <[email-masked]>
 ;;; Copyright © 2020 EuAndreh <[email-masked]>
+;;; Copyright © 2020 Ryan Desfosses <[email-masked]>
 ;;; Copyright © 2021 Sharlatan Hellseher <[email-masked]>
 ;;; Copyright © 2021 Ellis Kenyő <[email-masked]>
 ;;; Copyright © 2021 LibreMiami <[email-masked]>
@@ -1645,6 +1646,31 @@ (define-public python-semantic-version
 (define-public python2-semantic-version
   (package-with-python2 python-semantic-version))

+(define-public python-serial
+  (package
+  (name "python-serial")
+  (version "0.0.97")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "serial" version))
+      (sha256
+        (base32
+          "0j7qjif5d9mxbdwcyyhr7fpcvjq7x16ar9n3mk95xgyx4yhm08al"))))
+  (build-system python-build-system)
+  (propagated-inputs
+    `(("python-future" ,python-future)
+      ("python-iso8601" ,python-iso8601)
+      ("python-pyyaml" ,python-pyyaml)))
+  (home-page
+    "https://bitbucket.com/davebelais/serial.git")
+  (synopsis
+    "Framework for serializing/deserializing JSON/YAML/XML")
+  (description
+    "This package provides a framework for serializing/deserializing
+JSON/YAML/XML into python class instances and vice versa")
+  (license license:expat)))
+
 (define-public python-serpent
   (package
     (name "python-serpent")
--
2.33.1