gnu: Add rust-zvariant-derive-4.

* gnu/packages/crates-io.scm (rust-zvariant-derive-4): New variable.
(rust-zvariant-derive-3): Inherit from rust-zvariant-derive-4.

Change-Id: I48deff20fb1b7322da5800900972a920fe67351c
This commit is contained in:
Giacomo Leidi 2024-11-06 21:43:01 +01:00 committed by Efraim Flashner
parent 3c3a27c81b
commit e72e5e79b4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -95355,8 +95355,38 @@ (define-public rust-zvariant-2
("rust-serde-json" ,rust-serde-json-1)
("rust-serde-repr" ,rust-serde-repr-0.1))))))
(define-public rust-zvariant-derive-4
(package
(name "rust-zvariant-derive")
(version "4.2.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "zvariant_derive" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0jf408h0s83krxwm7wl62fnssin1kcklmb1bcn83ls6sddabmqkk"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; use of undeclared crate or module `zvariant`
#:cargo-inputs (("rust-proc-macro-crate" ,rust-proc-macro-crate-3)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-2)
("rust-zvariant-utils" ,rust-zvariant-utils-2))
#:cargo-development-inputs
(("rust-byteorder" ,rust-byteorder-1)
("rust-enumflags2" ,rust-enumflags2-0.7)
("rust-serde" ,rust-serde-1)
("rust-serde-repr" ,rust-serde-repr-0.1))))
(home-page "https://github.com/dbus2/zbus/")
(synopsis "D-Bus & GVariant encoding & decoding")
(description "This package provides D-Bus & GVariant encoding & decoding.")
(license license:expat)))
(define-public rust-zvariant-derive-3
(package
(inherit rust-zvariant-derive-4)
(name "rust-zvariant-derive")
(version "3.15.0")
(source (origin
@ -95366,7 +95396,6 @@ (define-public rust-zvariant-derive-3
(sha256
(base32
"1kcfgpqshggr5v7dwldjggix79zcyj7fizw7dkh6w39iziyplkck"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; Needs unstable features.
#:cargo-inputs
@ -95379,11 +95408,7 @@ (define-public rust-zvariant-derive-3
(("rust-byteorder" ,rust-byteorder-1)
("rust-enumflags2" ,rust-enumflags2-0.7)
("rust-serde" ,rust-serde-1)
("rust-serde-repr" ,rust-serde-repr-0.1))))
(home-page "https://github.com/dbus2/zbus/")
(synopsis "D-Bus & GVariant encoding & decoding")
(description "D-Bus & GVariant encoding & decoding")
(license license:expat)))
("rust-serde-repr" ,rust-serde-repr-0.1))))))
(define-public rust-zvariant-derive-2
(package