Subject: [PATCH 01/21] gnu: Add rust-pretty-assertions-0.5

From: Jaeme Sifat <[email-masked]>
Date: Sat, 28 Oct 2023 18:38:22 -0400

* gnu/packages/crates-io.scm (rust-pretty-assertions-0.5): New variable.
* gnu/packages/crates-io.scm (rust-pretty-assertions-0.7): Inherit
rust-pretty-assertions-1.
* gnu/packages/crates-io.scm (rust-pretty-assertions-0.6): Inherit
rust-pretty-assertions-1.
* gnu/packages/crates-io.scm (rust-pretty-assertions-0.4): Inherit
rust-pretty-assertions-1.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: I7c41823d489c2a7ca60a9aa6b825acce0babb4f8
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fc26147157..c77851df38 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52681,6 +52681,7 @@ (define-public rust-pretty-assertions-1
 
 (define-public rust-pretty-assertions-0.7
   (package
+    (inherit rust-pretty-assertions-1)
     (name "rust-pretty-assertions")
     (version "0.7.2")
     (source
@@ -52692,23 +52693,17 @@ (define-public rust-pretty-assertions-0.7
        (sha256
         (base32
          "12yris0ni87wvzhj23a5nnz7amskvahhnpikx5snhdyg09y0xaqw"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-ansi-term" ,rust-ansi-term-0.12)
         ("rust-ctor" ,rust-ctor-0.1)
         ("rust-diff" ,rust-diff-0.1)
-        ("rust-output-vt100" ,rust-output-vt100-0.1))))
-    (home-page "https://github.com/colin-kiegel/rust-pretty-assertions")
-    (synopsis "Drop-in replacements for assert_eq! and assert_ne!")
-    (description
-     "Overwrite @code{assert_eq!} and @code{assert_ne!} with drop-in
-replacements, adding colorful diffs.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-output-vt100" ,rust-output-vt100-0.1))))))
+
 
 (define-public rust-pretty-assertions-0.6
   (package
-    (inherit rust-pretty-assertions-0.7)
+    (inherit rust-pretty-assertions-1)
     (name "rust-pretty-assertions")
     (version "0.6.1")
     (source
@@ -52728,9 +52723,26 @@ (define-public rust-pretty-assertions-0.6
         ("rust-ansi-term" ,rust-ansi-term-0.11)
         ("rust-difference" ,rust-difference-2))))))
 
+(define-public rust-pretty-assertions-0.5
+  (package
+    (inherit rust-pretty-assertions-1)
+    (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"))))
+    (arguments
+     `(#:tests? #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)
+    (inherit rust-pretty-assertions-1)
     (name "rust-pretty-assertions")
     (version "0.4.1")
     (source
-- 
2.41.0