guix-devel
[Top][All Lists]
Advanced

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

[PATCH 3/7] gnu: Add python2-ruamel.ordereddict


From: contact . ng0
Subject: [PATCH 3/7] gnu: Add python2-ruamel.ordereddict
Date: Tue, 31 Jan 2017 12:53:35 +0000

From: ng0 <address@hidden>

* gnu/packages/python.scm (python2-ruamel.ordereddict): New variable.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f6516d26b..cef9d2a8c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -583,6 +583,34 @@ the Python logging module that outputs records using 
terminal colors.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools))))))
 
+(define-public python2-ruamel.ordereddict
+  (package
+    (name "python2-ruamel.ordereddict")
+    (version "0.4.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ruamel.ordereddict" version))
+       (sha256
+        (base32
+         "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
+    (build-system python-build-system)
+    ;; XXX: https://bitbucket.org/ruamel/ordereddict/issues/2
+    (arguments
+     `(#:python ,python-2))
+    (inputs
+     `(("python2-setuptools" ,python2-setuptools)))
+    (home-page "https://bitbucket.org/ruamel/ordereddict";)
+    (synopsis "Version of @code{dict} that keeps keys in insertion
+resp. sorted order")
+    (description
+     "This is an implementation of an ordered dictionary with Key
+Insertion Order and Key Value Insertion Order.  The standard library
+module OrderedDict, implemented later, implements a subset of
+ordereddict functionality.  Sorted dictionaries are also provided.
+Currently only with Key Sorted Order.")
+    (license license:expat)))
+
 (define-public python-paramiko
   (package
     (name "python-paramiko")
-- 
2.11.0




reply via email to

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