mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
import: pypi: Handle 'null instead of #nil.
* guix/import/pypi.scm (non-empty-string-or-false): guile-json now returns 'null instead of #nil for null JSON values. Handle it.
This commit is contained in:
parent
9e85f652cb
commit
a2daee843d
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
||||
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -63,7 +64,7 @@ (define non-empty-string-or-false
|
|||
(match-lambda
|
||||
("" #f)
|
||||
((? string? str) str)
|
||||
((or #nil #f) #f)))
|
||||
((or 'null #f) #f)))
|
||||
|
||||
;; PyPI project.
|
||||
(define-json-mapping <pypi-project> make-pypi-project pypi-project?
|
||||
|
|
Loading…
Reference in a new issue