GNU bug report logs - #25834
Update scientific Python packages

Previous Next

Package: guix-patches;

Reported by: Thomas Danckaert <post <at> thomasdanckaert.be>

Date: Wed, 22 Feb 2017 10:31:01 UTC

Severity: normal

Tags: patch

Merged with 25705

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 25834 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Thomas Danckaert <thomas.danckaert <at> gmail.com>, 25834 <at> debbugs.gnu.org
Cc: Thomas Danckaert <post <at> thomasdanckaert.be>
Subject: Re: bug#25834: [PATCH 1/7] gnu:
 Add	python2-backports-shutil-get-terminal-size.
Date: Thu, 23 Feb 2017 14:21:30 +0100
[Message part 1 (text/plain, inline)]
Thomas Danckaert <thomas.danckaert <at> gmail.com> writes:

> From: Thomas Danckaert <post <at> thomasdanckaert.be>
>
> * gnu/packages/python.scm (python2-backports-shutil-get-terminal-size): New
>   variable.

[...]

> +(define-public python2-backports-shutil-get-terminal-size
> +  (package-with-python2

The "package-with-python" procedure expects to get a py3 equipped
package as argument. For python2-only packages, I prefer to have the
inputs explicitly set to the python2 variants.

> +   (package
> +     (name "python-backports-shutil-get-terminal-size")
               python2*

> +     (version "1.0.0")
> +     (source
> +      (origin
> +        (method url-fetch)
> +        (uri (string-append
> +              "https://pypi.python.org/packages/ec/9c/"
> +              "368086faa9c016efce5da3e0e13ba392c9db79e3ab740b763fe28620b18b/"
> +              "backports.shutil_get_terminal_size-" version ".tar.gz"))

Is it possible to use 'pypi-uri' here?

> +        (sha256
> +         (base32
> +          "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
> +     (build-system python-build-system)
> +     (home-page
> +      "https://github.com/chrippa/backports.shutil_get_terminal_size")
> +     (synopsis
> +      "Backport of Python 3.3's @code{shutil.get_terminal_size()}")

I don't think Texinfo syntax is supported in synopses. See e.g.

https://www.gnu.org/software/guix/packages/r.html#ruby-minitest-bonus-assertions

> +     (description
> +      "A backport of the get_terminal_size function from Python 3.3's shutil.
> +Unlike the original version it is written in pure Python rather than C, so it
> +might be a tiny bit slower.")

Here "get_terminal_size" and "shutil" would be clearer with an @code{}
wrapper IMO. Otherwise LGTM.

> +     (license license:expat))))
> +
>  (define-public python-waf
>    (package
>      (name "python-waf")
> -- 
> 2.11.1
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 8 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.