mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
import: pypi: Match new 'pypi-uri' domain in updater.
* guix/import/pypi.scm (pypi-package?): Match pypi.io domain.
This commit is contained in:
parent
cccbc63950
commit
4cb7786eff
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue