Subject: [bug#50367] [PATCH 09/22] gnu: Add rust-pretty-assertions-0.7.

From: phodina <[email-masked]>
Date: Sat, 04 Sep 2021 07:31:17 +0000

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 286ca88c8e..b636a8ff46 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34941,8 +34941,36 @@ functions.")
 particularly useful for printing structured recursive data like trees.")
     (license license:expat)))

+(define-public rust-pretty-assertions-0.7
+  (package
+    (name "rust-pretty-assertions")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pretty-assertions" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (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))))
+
 (define-public rust-pretty-assertions-0.6
   (package
+    (inherit rust-pretty-assertions-0.7)
     (name "rust-pretty-assertions")
     (version "0.6.1")
     (source
@@ -34961,13 +34989,7 @@ particularly useful for printing structured recursive data like trees.")
        (("rust-ctor" ,rust-ctor-0.1)
         ("rust-output-vt100" ,rust-output-vt100-0.1)
         ("rust-ansi-term" ,rust-ansi-term-0.11)
-        ("rust-difference" ,rust-difference-2))))
-    (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-difference" ,rust-difference-2))))))

 (define-public rust-pretty-assertions-0.4
   (package
--
2.32.0