Browse Source

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.
Arun Isaac 1 year ago
parent
commit
a2daee843d
No known key found for this signature in database GPG Key ID: 2E25EE8B61802BB3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      guix/import/pypi.scm

+ 2
- 1
guix/import/pypi.scm View 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?


Loading…
Cancel
Save