import: pypi: Handle 'null instead of #nil.
authorArun Isaac <arunisaac@systemreboot.net>
Sat, 4 Jul 2020 22:37:35 +0000 (04:07 +0530)
committerArun Isaac <arunisaac@systemreboot.net>
Sun, 5 Jul 2020 10:41:21 +0000 (16:11 +0530)
* guix/import/pypi.scm (non-empty-string-or-false): guile-json now returns
'null instead of #nil for null JSON values. Handle it.

guix/import/pypi.scm

index b20c230..a2b5d99 100644 (file)
@@ -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?