summaryrefslogtreecommitdiff
path: root/guix/import
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-09-18 22:53:17 +0200
committerLudovic Courtès <ludo@gnu.org>2019-09-18 23:08:29 +0200
commit45fbc15a48d04cf9deaa5d40658846426cc94845 (patch)
tree7f3bd17bf5697aa08f0a356f10c606e9719bc4cf /guix/import
parentd0980ef41859d1f0e4deb98a7f1d6f4ab2c9d4c4 (diff)
downloadpatches-45fbc15a48d04cf9deaa5d40658846426cc94845.tar
patches-45fbc15a48d04cf9deaa5d40658846426cc94845.tar.gz
import: pypi: Refresher recognizes pythonhosted.org source URLs.
This is a followup to a5376200541abf8245973e601be246bf65b8b6c7. Since that commit, 'pypi-package?' would return false for most Python packages, and thus "guix refresh python-xxx" would report that no updaters apply to the package. * guix/import/pypi.scm (pypi-package?)[pypi-url?]: Recognize "files.pythonhosted.org" URLs.
Diffstat (limited to 'guix/import')
-rw-r--r--guix/import/pypi.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index 9b3d80a02e..354cae9c4c 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -437,7 +437,8 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE."
(define (pypi-url? url)
(or (string-prefix? "https://pypi.org/" url)
(string-prefix? "https://pypi.python.org/" url)
- (string-prefix? "https://pypi.org/packages" url)))
+ (string-prefix? "https://pypi.org/packages" url)
+ (string-prefix? "https://files.pythonhosted.org/packages" url)))
(let ((source-url (and=> (package-source package) origin-uri))
(fetch-method (and=> (package-source package) origin-method)))