~ruther/guix-local

a5ffa812b8cb01f5904e587ed629960902004654 — Cyril Roelandt 11 years ago cf69012
guix import pypi: do not add "python-" to a package name if it's already there.

* guix/import/pypi.scm (make-pypi-sexp): test whether the package name starts
  with "python-" before modifying it.
1 files changed, 3 insertions(+), 1 deletions(-)

M guix/import/pypi.scm
M guix/import/pypi.scm => guix/import/pypi.scm +3 -1
@@ 134,7 134,9 @@ underscores."
  "Return the `package' s-expression for a python package with the given NAME,
VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE."
  `(package
     (name ,(string-append "python-" (snake-case name)))
     (name ,(if (string-prefix? "python-" name)
                (snake-case name)
                (string-append "python-" (snake-case name))))
     (version ,version)
     (source (origin
               (method url-fetch)