gnu: Add rust-float-cmp-0.5.

* gnu/packages/crates-io.scm (rust-float-cmp-0.5): New variable.
(rust-float-cmp-0.3): Inherit from rust-float-cmp-0.5.
This commit is contained in:
Efraim Flashner 2020-03-19 00:01:59 +02:00
parent 2d6fa18399
commit f90a306d1f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -5227,8 +5227,31 @@ (define-public rust-flate2-1.0
streams.")
(license (list license:expat license:asl2.0))))
(define-public rust-float-cmp-0.5
(package
(name "rust-float-cmp")
(version "0.5.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "float-cmp" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"03hmx3n48hjm0x1ig84n1j87kzp75lzr6cj1sgi6a6pykgn4n8km"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-num-traits" ,rust-num-traits-0.2))))
(home-page "https://github.com/mikedilger/float-cmp")
(synopsis "Floating point approximate comparison traits")
(description
"Floating point approximate comparison traits in Rust.")
(license license:expat)))
(define-public rust-float-cmp-0.3
(package
(inherit rust-float-cmp-0.5)
(name "rust-float-cmp")
(version "0.3.0")
(source
@ -5240,14 +5263,8 @@ (define-public rust-float-cmp-0.3
(sha256
(base32
"1c0hmj46xma5aysz0qb49padhc26aw875whx6q6rglsj5dqpds1b"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-num" ,rust-num-0.1))))
(home-page "https://github.com/mikedilger/float-cmp")
(synopsis "Floating point approximate comparison traits")
(description
"Floating point approximate comparison traits in Rust.")
(license license:expat)))
`(#:cargo-inputs (("rust-num" ,rust-num-0.1))))))
(define-public rust-float-ord-0.2
(package