gnu: Add rust-crates-index-0.17.

* gnu/packages/crates-io.scm (rust-crates-index-0.17): New variable.
  (rust-crates-index-0.13): Inherit from above.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Petr Hodina 2022-02-05 13:47:43 +01:00 committed by Nicolas Goaziou
parent 134bef2790
commit 7555ec8649
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -13579,8 +13579,40 @@ (define-public rust-cpuprofiler-0.0
(description "This package provides bindings to Google's cpu profiler.")
(license license:bsd-2)))
(define-public rust-crates-index-0.17
(package
(name "rust-crates-index")
(version "0.17.0")
(source (origin
(method url-fetch)
(uri (crate-uri "crates-index" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0izrm8m4wic5kp5y4p3f3d50lrlbamp3wizlgr4hm56rimfazm4a"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-git2" ,rust-git2-0.13)
("rust-glob" ,rust-glob-0.3)
("rust-hex" ,rust-hex-0.4)
("rust-home" ,rust-home-0.5)
("rust-memchr" ,rust-memchr-2)
("rust-semver" ,rust-semver-1)
("rust-serde" ,rust-serde-1)
("rust-serde-derive" ,rust-serde-derive-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-smartstring" ,rust-smartstring-0.2))))
(home-page "https://github.com/frewsxcv/rust-crates-index")
(synopsis "Retrieving and interacting with the crates.io index")
(description
"Library for retrieving and interacting with the crates.io index.")
(license license:asl2.0)))
(define-public rust-crates-index-0.13
(package
(inherit rust-crates-index-0.17)
(name "rust-crates-index")
(version "0.13.1")
(source
@ -13592,7 +13624,6 @@ (define-public rust-crates-index-0.13
(sha256
(base32
"1n7pp6mk59hw3nqlh8irxc9pp0g5ziw7bprqsw2lxvg13cvdp76s"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@ -13603,14 +13634,7 @@ (define-public rust-crates-index-0.13
("rust-serde-derive" ,rust-serde-derive-1)
("rust-serde-json" ,rust-serde-json-1))
#:cargo-development-inputs
(("rust-tempdir" ,rust-tempdir-0.3))))
(home-page
"https://github.com/frewsxcv/rust-crates-index")
(synopsis
"Retrieving and interacting with the crates.io index")
(description
"Library for retrieving and interacting with the crates.io index.")
(license license:asl2.0)))
(("rust-tempdir" ,rust-tempdir-0.3))))))
(define-public rust-crates-index-0.5
(package