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
parent
cf690129b4
commit
a5ffa812b8
|
@ -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)
|
||||
|
|
Reference in New Issue