diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-01-15 18:05:26 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-01-15 18:40:43 +0100 |
commit | 69f132554c6bd23df4610a21e636bde5f0578174 (patch) | |
tree | fe4b52249804ad3df10b724177eb5df3b8a81677 /tests/base64.scm | |
parent | ea6d962b93a38dd11c1d43c647a7ac10c2f75fe8 (diff) | |
download | guix-69f132554c6bd23df4610a21e636bde5f0578174.tar.gz |
import: cpan: Rewrite to use 'define-json-mapping'.
* guix/import/cpan.scm (<cpan-dependency>, <cpan-release>): New JSON-mapped record types. (metacpan-url->mirror-url): New procedure. (cpan-source-url): Rewrite in terms of it. (cpan-version): Remove. (cpan-module->sexp): Rewrite to take a <cpan-release> instead of an alist, and rename 'meta' to 'release'. [convert-inputs]: Rewrite to use 'cpan-release-dependencies'. Update calls to 'convert-inputs' to pass a list of symbols. Replace 'assoc-ref' calls with the appropriate field accessors. (cpan->guix-package): Rename 'module-meta' to 'release'. (latest-release): Likewise, and use the appropriate accessors. * tests/cpan.scm (test-json): Remove "prereqs" record; add "dependency" list. ("source-url-http", "source-url-https"): Remove. ("metacpan-url->mirror-url, http") ("metacpan-url->mirror-url, https"): New tests.
Diffstat (limited to 'tests/base64.scm')
0 files changed, 0 insertions, 0 deletions