From 7657e61d6b33fe758fd69355ed53efbd5310743c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 12 Mar 2020 11:04:00 +0100 Subject: import: pypi: Rewrite to use 'define-json-mapping'. * guix/import/pypi.scm (non-empty-string-or-false): New procedure. (, , ): New record types. (pypi-fetch): Call 'json->pypi-project'. (latest-source-release, latest-wheel-release): Use the new record accessors instead of 'assoc-ref*'. (pypi->guix-package, latest-release): Likewise. * tests/pypi.scm (test-json): Add mandatory fields. --- tests/pypi.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/pypi.scm b/tests/pypi.scm index 43d45f1dd8..19af6e61fb 100644 --- a/tests/pypi.scm +++ b/tests/pypi.scm @@ -38,7 +38,10 @@ \"license\": \"GNU LGPL\", \"summary\": \"summary\", \"home_page\": \"http://example.com\", + \"classifiers\": [], + \"download_url\": \"\" }, + \"urls\": [], \"releases\": { \"1.0.0\": [ { -- cgit v1.2.3