gnu: rust-ordered-float: Add 3.4.0.

* gnu/packages/crates-io.scm (rust-ordered-float-3): New variable.
(rust-ordered-float-2): Inherit from it.
This commit is contained in:
Marius Bakke 2022-12-02 21:43:59 +01:00 committed by Maxim Cournoyer
parent 6a859731ff
commit 2c0bb5bbaa
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -38222,8 +38222,37 @@ (define-public rust-ord-subset-3
PartialOrd types, like floats.")
(license (list license:expat license:asl2.0))))
(define-public rust-ordered-float-3
(package
(name "rust-ordered-float")
(version "3.4.0")
(source (origin
(method url-fetch)
(uri (crate-uri "ordered-float" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1gr31ksgbqariv6hz3s5bc15a5vh4k65dyn8m7j59lhnji0b2knq"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
("rust-bytemuck" ,rust-bytemuck-1)
("rust-num-traits" ,rust-num-traits-0.2)
("rust-proptest" ,rust-proptest-1)
("rust-rand" ,rust-rand-0.8)
("rust-rkyv" ,rust-rkyv-0.7)
("rust-schemars" ,rust-schemars-0.8)
("rust-serde" ,rust-serde-1)
("rust-speedy" ,rust-speedy-0.8))))
(home-page "https://github.com/reem/rust-ordered-float")
(synopsis "Wrappers for total ordering on floats")
(description
"This package provides wrappers for total ordering on floats in Rust.")
(license license:expat)))
(define-public rust-ordered-float-2
(package
(inherit rust-ordered-float-3)
(name "rust-ordered-float")
(version "2.1.1")
(source
@ -38235,7 +38264,6 @@ (define-public rust-ordered-float-2
(sha256
(base32
"0632g8bacvras6nig1bb1ihgc560476jkrb3is6n542ll86q8vvn"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build?
#t
@ -38243,12 +38271,7 @@ (define-public rust-ordered-float-2
(("rust-num-traits" ,rust-num-traits-0.2)
("rust-serde" ,rust-serde-1))
#:cargo-development-inputs
(("rust-serde-test" ,rust-serde-test-1))))
(home-page "https://github.com/reem/rust-ordered-float")
(synopsis "Wrappers for total ordering on floats")
(description
"This package provides wrappers for total ordering on floats in Rust.")
(license license:expat)))
(("rust-serde-test" ,rust-serde-test-1))))))
(define-public rust-ordered-float-1
(package