import: pypi: Always use pypi.io URL with downcased package name.

* guix/import/pypi.scm (make-pypi-sexp): Always use pypi.io URL with
downcased package name.
This commit is contained in:
Danny Milosavljevic 2017-05-31 22:04:15 +02:00
parent b7aa3f5d2e
commit d1e7ca2df8
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 1 additions and 5 deletions

View File

@ -258,11 +258,7 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE."
;; Sometimes 'pypi-uri' doesn't quite work due to mixed ;; Sometimes 'pypi-uri' doesn't quite work due to mixed
;; cases in NAME, for instance, as is the case with ;; cases in NAME, for instance, as is the case with
;; "uwsgi". In that case, fall back to a full URL. ;; "uwsgi". In that case, fall back to a full URL.
(uri ,(if (equal? (pypi-uri name version) source-url) (uri (pypi-uri ,(string-downcase name) version))
`(pypi-uri ,name version)
`(string-append
,@(factorize-uri source-url version))))
(sha256 (sha256
(base32 (base32
,(guix-hash-url temp))))) ,(guix-hash-url temp)))))