diff mbox series

[bug#56057,bug,#56057,v2,16/21] gnu: Add rust-pretty-assertions-1.2.

Message ID 20220619172711.3413-17-antlers@luris.net
State New
Headers show
Series [bug#56057,bug,#56057,v2,01/21] gnu: Add rust-addr2line-0.17. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

antlers June 19, 2022, 5:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-pretty-assertions-1.2): New variable.
---
:100644 100644 23679744fa 790c53b4cd M	gnu/packages/crates-io.scm
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 23679744fa..790c53b4cd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44893,6 +44893,33 @@  (define-public rust-pretty-0.5
        (("rust-termcolor" ,rust-termcolor-0.3)
         ("rust-typed-arena" ,rust-typed-arena-1))))))
 
+(define-public rust-pretty-assertions-1.2
+  (package
+    (name "rust-pretty-assertions")
+    (version "1.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pretty_assertions" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0qrmkdwqn56af498vi8zjyq44wzcyvj5ic1dv54d01s2r6d9i7y8"))))
+    (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.7
   (package
     (name "rust-pretty-assertions")