me
/
guix
Archived
1
0
Fork 0

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.
master
Cyril Roelandt 2014-10-16 00:42:51 +02:00
parent cf690129b4
commit a5ffa812b8
1 changed files with 3 additions and 1 deletions

View File

@ -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)