[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: gnu: Add python2-ruamel.ordereddict.
From: |
Marius Bakke |
Subject: |
07/07: gnu: Add python2-ruamel.ordereddict. |
Date: |
Thu, 9 Feb 2017 17:47:48 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 8fd6850436eb1b291d099b8b5c84f00c5d67e242
Author: Muriithi Frederick Muriuki <address@hidden>
Date: Thu Feb 9 20:48:36 2017 +0300
gnu: Add python2-ruamel.ordereddict.
* gnu/packages/python.scm (python2-ruamel.ordereddict): New variable.
Signed-off-by: Marius Bakke <address@hidden>
---
gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a4f5edc..a049454 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12633,3 +12633,37 @@ Problem} (SAT) solver.")
(define-public python2-pycosat
(package-with-python2 python-pycosat))
+
+(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)
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (zero? (system* "python" "test/testordereddict.py")))))))
+ (home-page "https://bitbucket.org/ruamel/ordereddict")
+ (synopsis "Version of dict that keeps keys in insertion order")
+ (description
+ "This is an implementation of an ordered dictionary with @dfn{Key
+Insertion Order} (KIO: updates of values do not affect the position of the
+key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
+removed and put at the back). The standard library module @code{OrderedDict},
+implemented later, implements a subset of @code{ordereddict} functionality.
+Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
+Order} (KSO, no sorting function can be specified, but a transform can be
+specified to apply on the key before comparison (e.g. @code{string.lower})).")
+ (license license:expat)))
- branch master updated (6554be6 -> 8fd6850), Marius Bakke, 2017/02/09
- 01/07: gnu: vte-ng: Update to 0.46.1.a., Marius Bakke, 2017/02/09
- 06/07: gnu: Add python-pycosat., Marius Bakke, 2017/02/09
- 02/07: gnu: xf86-video-intel: Update to 2.99.917-3-e4fe79c., Marius Bakke, 2017/02/09
- 03/07: gnu: Add python-rst2ansi., Marius Bakke, 2017/02/09
- 04/07: gnu: Add python-flake8-polyfill., Marius Bakke, 2017/02/09
- 05/07: gnu: Add python-ddt., Marius Bakke, 2017/02/09
- 07/07: gnu: Add python2-ruamel.ordereddict.,
Marius Bakke <=