Subject: [PATCH rust-team 033/106] gnu: rust-test-case-1: Change cargo-inputs.

From: Herman Rimm <[email-masked]>
Date: Fri, 31 Jan 2025 22:09:54 +0100

* gnu/packages/crates-io.scm (rust-test-case-1)[source]: Relax version
requirement.  [arguments]: Add rust-proc-macro2-1.  Use rust-indexmap-1
instead of 1.7.

Change-Id: If73a950f928ef5b7df04b203b3b383dcaff981a9
---
 gnu/packages/crates-io.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b9db559356a..b74d0ad0228 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -80158,7 +80158,11 @@ (define-public rust-test-case-1
        (uri (crate-uri "test-case" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0siwpm8g40g5gcvwcn6g4iq0bdhm6lb3dq6wcspfhhsb814g1rg9"))))
+        (base32 "0siwpm8g40g5gcvwcn6g4iq0bdhm6lb3dq6wcspfhhsb814g1rg9"))
+       (modules '((guix build utils)))
+       ;; Tests pass with indexmap 1.9.3.
+       (snippet #~(substitute* "Cargo.toml"
+                    (("\"<1.8.0\"") "\"1.7.0\"")))))
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -80169,12 +80173,13 @@ (define-public rust-test-case-1
          "--skip=acceptance::allow_result_check"
          "--skip=acceptance::return_check")
        #:cargo-inputs
-       (("rust-proc-macro2" ,rust-proc-macro2-1)
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1)
         ("rust-version-check" ,rust-version-check-0.9))
        #:cargo-development-inputs
-       (("rust-indexmap" ,rust-indexmap-1.7)
+       (("rust-indexmap" ,rust-indexmap-1)
         ("rust-insta" ,rust-insta-0.16)
         ("rust-itertools" ,rust-itertools-0.10)
         ("rust-lazy-static" ,rust-lazy-static-1))))))
-- 
2.47.1