From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 6/6] gnu: Add python-ruamel.ordereddict Date: Wed, 08 Feb 2017 23:40:17 +0100 Message-ID: <8737fob92m.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <1486490441-3995-1-git-send-email-fredmanglis@gmail.com> <1486490441-3995-6-git-send-email-fredmanglis@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbauV-0001ea-7a for guix-devel@gnu.org; Wed, 08 Feb 2017 17:40:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbauS-00085R-4J for guix-devel@gnu.org; Wed, 08 Feb 2017 17:40:23 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59277) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbauS-00085G-0U for guix-devel@gnu.org; Wed, 08 Feb 2017 17:40:20 -0500 In-Reply-To: <1486490441-3995-6-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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Muriithi Frederick Muriuki writes: > * 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)) If this is python2 only, the package should be named "python2-ruamel.ordereddict". Could you also use the "package-with-python2" procedure to add a python2 variant for all packages that work with either version? Look around in python.scm for examples. Can you send an updated series? Thanks in advance! > + (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 Insert= ion Order (KIO: > + updates of values do not affect the position of the key), Key Value Ins= ertion 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 ordereddi= ct functionality. > +Sorted dictionaries are also provided. Currently only with Key Sorted O= rder (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))) > --=20 > 2.1.4 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlibnlEACgkQoqBt8qM6 VPrNBQf/esercPUwAyUP6GprD9x2sjou/qvPsXq2oaENBI/GK3CcMP4OKL5Bw5Vp NVpA8/3AcoY0Q6gBdhyAU+tNHv41KMFmZ99y6hoZ2JibJ91BhukKfCNb8dMTeMkm RZJROwwD3jCanyEBLCxkEjEAqPxXn6739JzTEJpVz3lRQpQdPzEJEyYnLnzqTO10 zEbYJ0HXkzqS4j7eQVx1uEvOJTbNLKFBMfVD3hP2m/y0vhoPH2NErWGU6I1UWBjv ZBuRahGaUGPx57z2SQyDgeeuz1I3xjDkeZJ0c2QPID7AFzFUPa/Q6cbJFV/UUL4g RNzqRfeD9Fm6d4wt/69z4ueic0hltw== =Tiwf -----END PGP SIGNATURE----- --=-=-=--