guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 6/6] gnu: Add python-ruamel.ordereddict


From: Marius Bakke
Subject: Re: [PATCH 6/6] gnu: Add python-ruamel.ordereddict
Date: Wed, 08 Feb 2017 23:40:17 +0100
User-agent: Notmuch/0.23.5 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu)

Muriithi Frederick Muriuki <address@hidden> 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 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

Attachment: signature.asc
Description: PGP signature


reply via email to

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