Subject: bug#25810: [PATCH 2/8] gnu: Add python-constantly.

From: Marius Bakke <[email-masked]>
Date: Mon, 06 Mar 2017 14:01:16 +0100

Troy Sankey <[email-masked]> writes:

> * gnu/packages/python.scm (python-constantly, python2-constantly): New
> variables.
> ---
>  gnu/packages/python.scm | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index e3904624c..9d2b977a7 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -12709,6 +12709,29 @@ Python.  It is based on Parsing Expression Grammars, PEG.  With pyPEG you can
>  parse many formal languages.")
>      (license license:gpl2)))
>  
> +(define-public python-constantly
> +  (package
> +    (name "python-constantly")
> +    (version "15.1.0")
> +    (source
> +      (origin
> +        (method url-fetch)
> +          (uri (pypi-uri "constantly" version))
> +        (sha256
> +          (base32
> +            "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
> +    (build-system python-build-system)
> +    (home-page
> +      "https://github.com/twisted/constantly")
> +    (synopsis "Symbolic constants in Python")
> +    (description "A library that provides symbolic constant support.  It
> +includes collections and constants with text, numeric, and bit flag values.
> +Originally @code{twisted.python.constants} from the Twisted project.")
> +    (license license:expat)))
> +
> +(define-public python2-constantly
> +  (package-with-python2 python-constantly))

Indentation is off some places, and home-page should be a single line,
but LGTM otherwise.

> +
>  (define-public python-attrs
>    (package
>      (name "python-attrs")
> -- 
> 2.11.1