diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2022-07-06 13:43:08 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2022-07-06 14:00:21 +0200 |
commit | 2fd79d33c6fd104a3a022580e15ce9266a54ccc5 (patch) | |
tree | 38e5566881e95ccf3067fc9873f21331095f6d92 /gnu | |
parent | 6a246e151b3f850dc140d07032776929f6e57654 (diff) | |
download | guix-2fd79d33c6fd104a3a022580e15ce9266a54ccc5.tar.gz |
gnu: Add rust-pretty-assertions-1.
* gnu/packages/crates-io.scm (rust-pretty-assertions-1): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 875eaefd23..7d0c62f021 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -44506,6 +44506,31 @@ particularly useful for printing structured recursive data like trees.") (("rust-termcolor" ,rust-termcolor-0.3) ("rust-typed-arena" ,rust-typed-arena-1)))))) +(define-public rust-pretty-assertions-1 + (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") |