aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-03-12 11:04:00 +0100
committerLudovic Courtès <ludo@gnu.org>2020-03-12 11:52:37 +0100
commit7657e61d6b33fe758fd69355ed53efbd5310743c (patch)
tree548d01dbd7c126a2970660032995f7f390c86d4d /tests
parenta20cfe71e9cd9450e9cfbe9e4bc478a0c726a2af (diff)
downloadguix-7657e61d6b33fe758fd69355ed53efbd5310743c.tar
guix-7657e61d6b33fe758fd69355ed53efbd5310743c.tar.gz
import: pypi: Rewrite to use 'define-json-mapping'.
* guix/import/pypi.scm (non-empty-string-or-false): New procedure. (<pypi-project>, <project-info>, <distribution>): 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.
Diffstat (limited to 'tests')
-rw-r--r--tests/pypi.scm3
1 files changed, 3 insertions, 0 deletions
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\": [
{