mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
a20cfe71e9
commit
7657e61d6b
2 changed files with 95 additions and 29 deletions
|
@ -38,7 +38,10 @@
|
|||
\"license\": \"GNU LGPL\",
|
||||
\"summary\": \"summary\",
|
||||
\"home_page\": \"http://example.com\",
|
||||
\"classifiers\": [],
|
||||
\"download_url\": \"\"
|
||||
},
|
||||
\"urls\": [],
|
||||
\"releases\": {
|
||||
\"1.0.0\": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue