From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG9rf-0001qF-Mg for guix-patches@gnu.org; Wed, 31 May 2017 16:05:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG9ra-0000MN-J7 for guix-patches@gnu.org; Wed, 31 May 2017 16:05:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG9ra-0000MF-Gr for guix-patches@gnu.org; Wed, 31 May 2017 16:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dG9ra-0007Wy-9R for guix-patches@gnu.org; Wed, 31 May 2017 16:05:02 -0400 Subject: bug#27173: [PATCH] import: pypi: Always use pypi.io URL with downcased package name. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG9r0-0001oH-W7 for guix-patches@gnu.org; Wed, 31 May 2017 16:04:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG9qv-00006B-V9 for guix-patches@gnu.org; Wed, 31 May 2017 16:04:26 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:48122) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dG9qv-00005i-Oo for guix-patches@gnu.org; Wed, 31 May 2017 16:04:21 -0400 From: Danny Milosavljevic Date: Wed, 31 May 2017 22:04:15 +0200 Message-Id: <20170531200415.21780-1-dannym@scratchpost.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27173@debbugs.gnu.org * 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 9c72e7331..90dbe5612 100644 --- a/guix/import/pypi.scm +++ b/guix/import/pypi.scm @@ -258,11 +258,7 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE." ;; 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)))))