gnu: Add rust-assert-approx-eq.

* gnu/packages/crates-io.scm (rust-assert-approx-eq-1): New variable.
This commit is contained in:
Marius Bakke 2022-01-23 17:03:52 +01:00
parent 455b5e2b69
commit 282d4e6bea
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -3860,6 +3860,27 @@ (define-public rust-assert-0.7
(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")