Subject: Re: bug#26524: [PATCH 2/5] gnu: Add python2-couleur

From: Marius Bakke <[email-masked]>
Date: Sun, 04 Jun 2017 14:29:09 +0200

Muriithi Frederick Muriuki <[email-masked]> writes:

> * gnu/packages/python.scm (python2-couleur): New variable.
> ---
>  gnu/packages/python.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 556d34d0c..989131680 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -14955,3 +14955,28 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
>  
>  (define-public python2-sure
>    (package-with-python2 python-sure))
> +
> +(define-public python2-couleur
> +  ;; This package does not seem to support python3 at all, hence,
> +  ;; only the python2 variant definition is provided.
> +  (package
> +    (name "python-couleur")

Applied with this name changed to python2-couleur...

> +    (version "0.6.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "couleur" version))
> +       (sha256
> +        (base32
> +         "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:python ,python-2))
> +    (home-page
> +     "http://github.com/gabrielfalcao/couleur")
> +    (synopsis
> +     "ANSI terminal tool for python, colored shell and other handy fancy features")
> +    (description
> +     "@code{Couleur} provides python programs a way to use the ANSI features in a unix
> +terminal such as coloured output in the shell, overwriting output, indentation, etc.")
> +    (license license:asl2.0)))

...oddly, README.md say ASL2.0, but all source code headers are LGPL3+.

https://github.com/gabrielfalcao/couleur/issues/11

I committed it as lgpl3+ and added this issue as a comment.