mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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.
This commit is contained in:
@@ -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
Block a user