gnu: Add rust-num-enum-0.7.

* gnu/packages/crates-io.scm (rust-num-enum-0.7): New variable.
(rust-num-enum-0.5): Inherit from rust-num-enum-0.7.

Change-Id: I5b8c0a40ff8090920dc8a54350aba8f510c63410
This commit is contained in:
Efraim Flashner 2024-01-04 11:44:34 +02:00
parent db5c7b058e
commit c4ba897aa9
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -45046,24 +45046,23 @@ (define-public rust-num-derive-0.2
(description "Numeric syntax extensions in Rust.") (description "Numeric syntax extensions in Rust.")
(license (list license:expat license:asl2.0)))) (license (list license:expat license:asl2.0))))
(define-public rust-num-enum-0.5 (define-public rust-num-enum-0.7
(package (package
(name "rust-num-enum") (name "rust-num-enum")
(version "0.5.11") (version "0.7.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (crate-uri "num_enum" version)) (uri (crate-uri "num_enum" version))
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "1japmqhcxwn1d3k7q8jw58y7xfby51s16nzd6dkj483cj2pnqr0z")))) (base32 "1h1pncbi7zviymadn521ycj7gdq84q1x3c4zqc015n76j7am2dv8"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? #false ;missing files `(#:tests? #f ; unresolved import `num_enum`
#:cargo-inputs #:cargo-inputs (("rust-num-enum-derive" ,rust-num-enum-derive-0.7))
(("rust-num-enum-derive" ,rust-num-enum-derive-0.5)) #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1)
#:cargo-development-inputs ("rust-paste" ,rust-paste-1)
(("rust-anyhow" ,rust-anyhow-1)
("rust-rustversion" ,rust-rustversion-1) ("rust-rustversion" ,rust-rustversion-1)
("rust-trybuild" ,rust-trybuild-1) ("rust-trybuild" ,rust-trybuild-1)
("rust-walkdir" ,rust-walkdir-2)))) ("rust-walkdir" ,rust-walkdir-2))))
@ -45074,6 +45073,28 @@ (define-public rust-num-enum-0.5
primitives and enums easier.") primitives and enums easier.")
(license (list license:bsd-3 license:expat license:asl2.0)))) (license (list license:bsd-3 license:expat license:asl2.0))))
(define-public rust-num-enum-0.5
(package
(inherit rust-num-enum-0.7)
(name "rust-num-enum")
(version "0.5.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "num_enum" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1japmqhcxwn1d3k7q8jw58y7xfby51s16nzd6dkj483cj2pnqr0z"))))
(arguments
`(#:tests? #false ;missing files
#:cargo-inputs
(("rust-num-enum-derive" ,rust-num-enum-derive-0.5))
#:cargo-development-inputs
(("rust-anyhow" ,rust-anyhow-1)
("rust-rustversion" ,rust-rustversion-1)
("rust-trybuild" ,rust-trybuild-1)
("rust-walkdir" ,rust-walkdir-2))))))
(define-public rust-num-enum-0.4 (define-public rust-num-enum-0.4
(package (package
(inherit rust-num-enum-0.5) (inherit rust-num-enum-0.5)