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

* guix/import/pypi.scm (pypi-package?): Match pypi.io domain.
This commit is contained in:
Marius Bakke 2016-12-20 12:44:45 +01:00
parent cccbc63950
commit 4cb7786eff
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -303,7 +303,8 @@ (define (pypi-package? package)
"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)))