Subject: [PATCH v8 24/44] gnu: Add rust-datatest-stable-0.3.

From: Herman Rimm <[email-masked]>
Date: Wed, 5 Feb 2025 19:31:39 +0100

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-io.scm (rust-datatest-stable-0.3): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1ec758c5989..ed9f01de74c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19034,6 +19034,39 @@ (define-public rust-databake-derive-0.1
     (description "This package provides Custom derive for the databake crate.")
     (license license:unicode)))
 
+(define-public rust-datatest-stable-0.3
+  (package
+    (name "rust-datatest-stable")
+    (version "0.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "datatest-stable" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "109r4iaib8w01wn3vn4x035fzr2y7d78dhl0k5rs6c9h80ybpsqr"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--"
+                            ;; These tests require unpackaged artifacts.
+                            "--skip=integration" "--skip=run_example"
+                            "--skip=unix::run_example_with_colons")
+       #:cargo-inputs (("rust-camino" ,rust-camino-1)
+                       ("rust-fancy-regex" ,rust-fancy-regex-0.14)
+                       ("rust-include-dir" ,rust-include-dir-0.7)
+                       ("rust-libtest-mimic" ,rust-libtest-mimic-0.8)
+                       ("rust-walkdir" ,rust-walkdir-2))
+       #:cargo-development-inputs
+       (("rust-camino-tempfile" ,rust-camino-tempfile-1)
+        ("rust-include-dir" ,rust-include-dir-0.7)
+        ("rust-fs-extra" ,rust-fs-extra-1)
+        ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/nextest-rs/datatest-stable")
+    (synopsis "Data-driven tests that work on stable Rust")
+    (description
+     "This package provides data-driven tests that work on stable Rust.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-dateparser-0.1
   (package
     (name "rust-dateparser")
-- 
2.47.1