From d1e7ca2df8c0e0dd601079c77f67ba6828cec08a Mon Sep 17 00:00:00 2001
From: Danny Milosavljevic <dannym@scratchpost.org>
Date: Wed, 31 May 2017 22:04:15 +0200
Subject: [PATCH] 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.
---
 guix/import/pypi.scm | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index 9c72e733143..90dbe561286 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -258,11 +258,7 @@ (define (make-pypi-sexp name version source-url wheel-url home-page synopsis
                        ;; Sometimes 'pypi-uri' doesn't quite work due to mixed
                        ;; cases in NAME, for instance, as is the case with
                        ;; "uwsgi".  In that case, fall back to a full URL.
-                       (uri ,(if (equal? (pypi-uri name version) source-url)
-                                 `(pypi-uri ,name version)
-                                 `(string-append
-                                   ,@(factorize-uri source-url version))))
-
+                       (uri (pypi-uri ,(string-downcase name) version))
                        (sha256
                         (base32
                          ,(guix-hash-url temp)))))
-- 
GitLab