From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muriithi Frederick Muriuki Subject: [PATCH 6/6] gnu: Add python-ruamel.ordereddict Date: Tue, 7 Feb 2017 21:00:41 +0300 Message-ID: <1486490441-3995-6-git-send-email-fredmanglis@gmail.com> References: <1486490441-3995-1-git-send-email-fredmanglis@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbA3X-00061L-Ml for guix-devel@gnu.org; Tue, 07 Feb 2017 12:59:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbA3W-0005Sk-IV for guix-devel@gnu.org; Tue, 07 Feb 2017 12:59:55 -0500 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbA3W-0005SC-Ce for guix-devel@gnu.org; Tue, 07 Feb 2017 12:59:54 -0500 Received: by mail-wm0-x22e.google.com with SMTP id v77so165829813wmv.0 for ; Tue, 07 Feb 2017 09:59:54 -0800 (PST) In-Reply-To: <1486490441-3995-1-git-send-email-fredmanglis@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: Muriithi Frederick Muriuki * gnu/packages/python.scm (python-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 ef3d9bd..e1e4e74 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12645,3 +12645,31 @@ faster ones are not available.") fundamental support consists of the types Any, Union, Tuple, Callable, TypeVar, and Generic. For full specification please see PEP 484") (license license:psfl))) + +(define-public python-ruamel.ordereddict + (package + (name "python-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)) + (home-page + "https://bitbucket.org/ruamel/ordereddict") + (synopsis + "Version of dict that keeps keys in insertion resp. sorted order") + (description + "This is an implementation of an ordered dictionary with Key Insertion Order (KIO: + updates of values do not affect the position of the key), Key Value Insertion Order + (KVIO, an existing key's position is removed and put at the back). The standard library + module OrderedDict, implemented later, implements a subset of ordereddict functionality. +Sorted dictionaries are also provided. Currently only with 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. string.lower))") + (license license:expat))) -- 2.1.4