summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-01-23 17:03:52 +0100
committerMarius Bakke <marius@gnu.org>2022-01-23 19:59:09 +0100
commit282d4e6bea62bce52c21b9e7f769bcd2348ddb63 (patch)
treedc5471cd15951d3b1e03bfaa3231df699901c7d7
parent455b5e2b69bdb16295bc18c6c406c2addf93dd53 (diff)
gnu: Add rust-assert-approx-eq.
* gnu/packages/crates-io.scm (rust-assert-approx-eq-1): New variable.
-rw-r--r--gnu/packages/crates-io.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b6144e283f..5a3ce5d66d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3860,6 +3860,27 @@ standard library.")
(description "This package provides assertions for testing.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-assert-approx-eq-1
+ (package
+ (name "rust-assert-approx-eq")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "assert_approx_eq" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1zagfwfad5wssmr830gk3489f97ppczv6xs627jxniwm6ssdl1rw"))))
+ (build-system cargo-build-system)
+ (arguments '(#:skip-build? #t))
+ (home-page "https://github.com/ashleygwilliams/assert_approx_eq")
+ (synopsis "Assert approximately equal")
+ (description
+ "This package provides a Rust macro for asserting two numbers are
+approximately equal.")
+ ;; Either license can be chosen at the users option.
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-assert-cli-0.6
(package
(name "rust-assert-cli")