import: cpan: Adapt for the change to guile-json version 3.
authorChristopher Baines <mail@cbaines.net>
Tue, 6 Aug 2019 19:17:28 +0000 (20:17 +0100)
committerChristopher Baines <mail@cbaines.net>
Wed, 21 Aug 2019 17:29:30 +0000 (18:29 +0100)
commit01ce7af25add55514f737af48ea6c127bedfde67
tree6558a4b124d998f3c6374faadbe77f931f2f64ec
parent8a3b11d1eb21e54b4f3a3cbceffed8ce2c11512e
import: cpan: Adapt for the change to guile-json version 3.

In guile-json version 3, JSON objects are represented as hash tables, rather
than alists.

* guix/import/cpan.scm (string->license): Change the match expression to match
on lists, rather than vectors.
(module->dist-name, cpan-source-url, cpan-version): Change assoc-ref to
hash-ref.
(cpan-module->sexp): Change assoc-ref to hash-ref, and assoc-ref* to
hash-ref*.
* tests/cpan.scm ("source-url-http", "source-url-https"): Convert the alist to
a hash table.
guix/import/cpan.scm
tests/cpan.scm