Subject: [bug#61562] [PATCH 1/5] gnu: Add rust-pretty-assertions-0.5.

From: Steve George <[email-masked]>
Date: Thu, 16 Feb 2023 22:57:38 +0000

* gnu/packages/crates-io.scm (rust-pretty-assertions-0.5): New variable.

---
Tests fail as they require Rust 1.35, added a comment.

 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e615a51b01..355c8ef761 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42350,6 +42350,27 @@ (define-public rust-pretty-assertions-0.6
         ("rust-ansi-term" ,rust-ansi-term-0.11)
         ("rust-difference" ,rust-difference-2))))))
 
+ ; test fail because minimum rust required is 1.35
+; https://github.com/rust-pretty-assertions/rust-pretty-assertions/issues/32
+(define-public rust-pretty-assertions-0.5
+  (package
+    (inherit rust-pretty-assertions-0.6)
+    (name "rust-pretty-assertions")
+    (version "0.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "pretty-assertions" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1ins6swkpxmrh8q5h96h8nv0497d3dclsiyx2lyvqi6py0q980is"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:skip-build? #f
+       #:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.11)
+                       ("rust-difference" ,rust-difference-2))))))
+
 (define-public rust-pretty-assertions-0.4
   (package
     (inherit rust-pretty-assertions-0.6)
-- 
2.39.1