[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/54: gnu: Add rust-approx-0.4.
From: |
guix-commits |
Subject: |
09/54: gnu: Add rust-approx-0.4. |
Date: |
Wed, 16 Jun 2021 06:55:03 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit fce829d8fc8b13124ff76a972e9583e783f6da10
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue Jun 15 12:43:08 2021 +0200
gnu: Add rust-approx-0.4.
* gnu/packages/crates-io.scm (rust-approx-0.4): New variable.
(rust-approx-0.3): Inherit from above.
---
gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++--------
1 file changed, 27 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 80b03d8..818ca0c 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
- branch master updated (111521d -> 382f8d0), guix-commits, 2021/06/16
- 02/54: gnu: Add rust-fd-lock-2., guix-commits, 2021/06/16
- 03/54: gnu: rust-error-code-2: Update to 2.3.0., guix-commits, 2021/06/16
- 05/54: gnu: rust-rustyline-8: Update to 8.2.0., guix-commits, 2021/06/16
- 06/54: gnu: Add rust-libsqlite3-sys-0.22., guix-commits, 2021/06/16
- 09/54: gnu: Add rust-approx-0.4.,
guix-commits <=
- 04/54: gnu: rust-clipboard-win-4: Update to 4.2.1., guix-commits, 2021/06/16
- 07/54: gnu: Add rust-cstr-core-0.2., guix-commits, 2021/06/16
- 08/54: gnu: Add rust-sys-locale-0.1., guix-commits, 2021/06/16
- 19/54: gnu: Add rust-zstd-0.8., guix-commits, 2021/06/16
- 11/54: gnu: Add rust-lexical-5., guix-commits, 2021/06/16
- 24/54: gnu: Add rust-lz4-1., guix-commits, 2021/06/16
- 15/54: gnu: Add rust-shlex-1., guix-commits, 2021/06/16
- 17/54: gnu: rust-zstd-sys-1: Update to 1.6.0+zstd.1.5.0., guix-commits, 2021/06/16
- 26/54: gnu: Add rust-tiny-keccak-2., guix-commits, 2021/06/16
- 28/54: gnu: rust-const-random-0.1: Update to 0.1.13., guix-commits, 2021/06/16