gnu: Add rust-approx-0.4.
* gnu/packages/crates-io.scm (rust-approx-0.4): New variable. (rust-approx-0.3): Inherit from above.
This commit is contained in:
parent
01f3bdb765
commit
fce829d8fc
1 changed files with 27 additions and 8 deletions
|
@ -1942,8 +1942,34 @@ type.")
|
||||||
on every platform.")
|
on every platform.")
|
||||||
(license license:expat)))
|
(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
|
(define-public rust-approx-0.3
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-approx-0.4)
|
||||||
(name "rust-approx")
|
(name "rust-approx")
|
||||||
(version "0.3.2")
|
(version "0.3.2")
|
||||||
(source
|
(source
|
||||||
|
@ -1955,18 +1981,11 @@ on every platform.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1hx580xjdxl3766js9b49rnbnmr8gw8c060809l43k9f0xshprph"))))
|
"1hx580xjdxl3766js9b49rnbnmr8gw8c060809l43k9f0xshprph"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:skip-build? #t
|
`(#:skip-build? #t
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-num-complex" ,rust-num-complex-0.2)
|
(("rust-num-complex" ,rust-num-complex-0.2)
|
||||||
("rust-num-traits" ,rust-num-traits-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)))
|
|
||||||
|
|
||||||
(define-public rust-approx-0.1
|
(define-public rust-approx-0.1
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue