guix-devel/guix/import
Ludovic Courtès 2791870d09
import: crate: Separate crates.io API from actual conversion.
This provides a clean separation between bindings to the
https://crates.io/api/v1 API and actual conversion to Guix package
sexps.

As a side-effect, it fixes things like "guix import blake2-rfc", "guix
refresh -t crates", etc.

* guix/import/crate.scm (<crate>, <crate-version>, <crate-dependency>):
New record types.
(lookup-crate, crate-version-dependencies): New procedures.
(crate-fetch): Remove.
(crate->guix-package): Rewrite to use the new API.
(latest-release): Likewise.
* guix/build-system/cargo.scm (%crate-base-url): New variable.
* tests/crate.scm (test-crate): Update accordingly.

fixlet
2019-09-04 13:02:27 +02:00
..
cabal.scm import: hackage: Handle Hackage revisions. 2019-06-13 22:18:52 -04:00
cpan.scm Revert "import: cpan: Adapt for the change to guile-json version 3." 2019-08-22 14:24:11 -04:00
cran.scm import: cran: Only use the git import with what looks like a URL. 2019-09-02 14:46:04 +02:00
crate.scm import: crate: Separate crates.io API from actual conversion. 2019-09-04 13:02:27 +02:00
elpa.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
gem.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
github.scm import: github: 'github-package?' uses 'package-upstream-name'. 2019-08-27 12:20:44 +02:00
gnome.scm import: gnome: Update for Guile-JSON 3.x. 2019-08-17 23:18:11 +02:00
gnu.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
hackage.scm import: hackage: Update list of ghc-included packages. 2019-08-07 22:05:29 -04:00
json.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
launchpad.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
opam.scm import: opam: Use dune-build-system when possible. 2019-04-10 21:39:04 +02:00
print.scm import: print: Honor the outputs of inputs (!). 2019-06-07 22:49:47 +02:00
pypi.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
snix.scm build: Remove checks for 'nix-instantiate'. 2018-06-18 23:19:51 +02:00
stackage.scm maint: Switch to Guile-JSON 3.x. 2019-07-25 00:16:41 +02:00
texlive.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
utils.scm import: cran: Add support for git repositories. 2019-08-29 11:38:12 +02:00