guix-commits
[Top][All Lists]
Advanced

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

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


From: Marius Bakke
Subject: 01/01: import: pypi: Match new 'pypi-uri' domain in updater.
Date: Tue, 20 Dec 2016 11:58:03 +0000 (UTC)

mbakke pushed a commit to branch master
in repository guix.

commit 4cb7786eff9b9188169ed2c2e5af53903962e7d1
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]