guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

125/155: import: pypi: Match new 'pypi-uri' domain in updater.


From: John Darrington
Subject: 125/155: import: pypi: Match new 'pypi-uri' domain in updater.
Date: Wed, 21 Dec 2016 20:48:41 +0000 (UTC)

jmd pushed a commit to branch wip-installer
in repository guix.

commit fd9542a59a3b0219a49a604372b26b4a8982a722
Author: Marius Bakke <address@hidden>
Date:   Tue Dec 20 12:44:45 2016 +0100

    import: pypi: Match new 'pypi-uri' domain in updater.
    
    * guix/import/pypi.scm (pypi-package?): Match pypi.io domain.
---
 guix/import/pypi.scm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index 9794ff9..7cce0fc 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -303,7 +303,8 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and 
LICENSE."
   "Return true if PACKAGE is a Python package from PyPI."
 
   (define (pypi-url? url)
-    (string-prefix? "https://pypi.python.org/"; url))
+    (or (string-prefix? "https://pypi.python.org/"; url)
+        (string-prefix? "https://pypi.io/packages"; url)))
 
   (let ((source-url (and=> (package-source package) origin-uri))
         (fetch-method (and=> (package-source package) origin-method)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]