mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
import/pypi: Improve renaming procedure.
A package named upstream like 'tmdb-python' now gets named 'python-tmdb' instead of 'python-tmdb-python', which is ugly and doesn't match our convention (info "(guix) Python Modules"). * guix/import/pypi.scm (python->package-name): Turn a -python suffix into a python- prefix. Change-Id: I7c0227d569c0afe6b16329d7cedb51728e4365b0
This commit is contained in:
parent
19de75a165
commit
5af2a0c390
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@ or #f if there isn't any."
|
|||
package."
|
||||
(cond
|
||||
((string-prefix? "python-" name) (snake-case name))
|
||||
((string-suffix? "-python" name)
|
||||
(string-append "python-" (string-drop-right name 7)))
|
||||
((or (string=? "trytond" name)
|
||||
(string-prefix? "trytond-" name)) (snake-case name))
|
||||
(else (string-append "python-" (snake-case name)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue