aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-15 12:43:08 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-16 12:47:38 +0200
commitfce829d8fc8b13124ff76a972e9583e783f6da10 (patch)
tree40a1d00294d4d1344a739bfa2d930c6083c83b3d /gnu/packages/crates-io.scm
parent01f3bdb765cd64532e9026e94f08f42b6f1b356c (diff)
downloadguix-fce829d8fc8b13124ff76a972e9583e783f6da10.tar.gz
guix-fce829d8fc8b13124ff76a972e9583e783f6da10.zip
gnu: Add rust-approx-0.4.
* gnu/packages/crates-io.scm (rust-approx-0.4): New variable. (rust-approx-0.3): Inherit from above.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm35
1 files changed, 27 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 80b03d820c..818ca0cb22 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1942,8 +1942,34 @@ type.")
on every platform.")
(license license:expat)))
+(define-public rust-approx-0.4
+ (package
+ (name "rust-approx")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "approx" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0y52dg58lapl4pp1kqlznfw1blbki0nx6b0aw8kja2yi3gyhaaiz"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-num-complex" ,rust-num-complex-0.3)
+ ("rust-num-traits" ,rust-num-traits-0.2))))
+ (home-page "https://github.com/brendanzab/approx")
+ (synopsis "Approximate floating point equality comparisons and assertions")
+ (description
+ "This crate provides facilities for testing the approximate equality of
+floating-point based types, using either relative difference, or units in the
+last place (ULPs) comparisons.")
+ (license license:asl2.0)))
+
(define-public rust-approx-0.3
(package
+ (inherit rust-approx-0.4)
(name "rust-approx")
(version "0.3.2")
(source
@@ -1955,18 +1981,11 @@ on every platform.")
(sha256
(base32
"1hx580xjdxl3766js9b49rnbnmr8gw8c060809l43k9f0xshprph"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-num-complex" ,rust-num-complex-0.2)
- ("rust-num-traits" ,rust-num-traits-0.2))))
- (home-page "https://github.com/brendanzab/approx")
- (synopsis
- "Approximate floating point equality comparisons and assertions")
- (description
- "Approximate floating point equality comparisons and assertions.")
- (license license:asl2.0)))
+ ("rust-num-traits" ,rust-num-traits-0.2))))))
(define-public rust-approx-0.1
(package