summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2020-07-05 04:07:35 +0530
committerArun Isaac <arunisaac@systemreboot.net>2020-07-05 16:11:21 +0530
commita2daee843d93abd5cc15a6277b6a3e7118fe047a (patch)
tree0eb14f37f79fd60ad114f283b23af5768a957fed
parent9e85f652cb9df3393615b3dafcb0f7431b794248 (diff)
downloadguix-patches-a2daee843d93abd5cc15a6277b6a3e7118fe047a.tar
guix-patches-a2daee843d93abd5cc15a6277b6a3e7118fe047a.tar.gz
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.
-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 b20c2300f6..a2b5d995ef 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -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 @@
(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?