Subject: [bug#72021] [PATCH 23/38] gnu: Add rust-test-strategy-0.3.

From: Wilko Meyer <[email-masked]>
Date: Wed, 10 Jul 2024 01:37:03 +0200

* gnu/packages/crates-io.scm (rust-test-strategy-0.3): New variable.
(rust-test-strategy-0.2): Inherit from rust-test-strategy-0.3.

Change-Id: I787040a39e79e95de8557eabcd7d2038046a677c
---
 gnu/packages/crates-io.scm | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e6181312af..03e3e5ffc4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79538,8 +79538,33 @@ (define-public rust-test-log-0.2
 logging and/or tracing infrastructure before running tests.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-test-strategy-0.3
+  (package
+    (name "rust-test-strategy")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "test-strategy" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1nf11267xdcflg1ir25na0s8mbrwh9f0zmzykg88l8jlhn01qdmq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-structmeta" ,rust-structmeta-0.2)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/frozenlib/test-strategy")
+    (synopsis "Macro to write higher-order strategies in proptest")
+    (description
+     "This package provides a procedural macro to easily write higher-order
+strategies in proptest.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-test-strategy-0.2
   (package
+    (inherit rust-test-strategy-0.3)
     (name "rust-test-strategy")
     (version "0.2.1")
     (source (origin
@@ -79558,13 +79583,7 @@ (define-public rust-test-strategy-0.2
         ("rust-syn" ,rust-syn-1))
        #:cargo-development-inputs
        (("rust-proptest" ,rust-proptest-1)
-        ("rust-trybuild" ,rust-trybuild-1))))
-    (home-page "https://github.com/frozenlib/test-strategy")
-    (synopsis "Macro to write higher-order strategies in proptest")
-    (description
-     "This package provides a procedural macro to easily write higher-order
-strategies in proptest.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-trybuild" ,rust-trybuild-1))))))
 
 (define-public rust-test-with-0.8
   (package
-- 
2.41.0