import: pypi: Refresher recognizes pythonhosted.org source URLs.
This is a followup to a537620054
.
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.
This commit is contained in:
parent
d0980ef418
commit
45fbc15a48
|
@ -437,7 +437,8 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE."
|
||||||
(define (pypi-url? url)
|
(define (pypi-url? url)
|
||||||
(or (string-prefix? "https://pypi.org/" url)
|
(or (string-prefix? "https://pypi.org/" url)
|
||||||
(string-prefix? "https://pypi.python.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))
|
(let ((source-url (and=> (package-source package) origin-uri))
|
||||||
(fetch-method (and=> (package-source package) origin-method)))
|
(fetch-method (and=> (package-source package) origin-method)))
|
||||||
|
|
Loading…
Reference in New Issue