gnu: Add rust-pyo3-macros-0.20.

* gnu/packages/crates-io.scm (rust-pyo3-macros-0.20): New variable.
(rust-pyo3-macros-0.19): Inherit from rust-pyo3-macros-0.20.

Change-Id: I766cd3f45d4d531ec7285825061e69543c858d6b
This commit is contained in:
Efraim Flashner 2024-01-14 16:40:19 +02:00
parent 40c7e59605
commit 7d5b963f96
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -53733,8 +53733,32 @@ (define-public rust-pyo3-macros-backend-0.15
("rust-syn" ,rust-syn-1))))
(native-inputs (list python))))
(define-public rust-pyo3-macros-0.20
(package
(name "rust-pyo3-macros")
(version "0.20.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "pyo3-macros" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1lsfyx1shdyi7zybs3maakh2h3zsij3l5wap35qval0dwjs3ixq5"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-pyo3-macros-backend" ,rust-pyo3-macros-backend-0.20)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-2))))
(home-page "https://github.com/pyo3/pyo3")
(synopsis "Proc macros for PyO3")
(description
"This package provides compiler macros for use with PyO3.")
(license (list license:expat license:asl2.0))))
(define-public rust-pyo3-macros-0.19
(package
(inherit rust-pyo3-macros-0.20)
(name "rust-pyo3-macros")
(version "0.19.2")
(source (origin
@ -53744,18 +53768,12 @@ (define-public rust-pyo3-macros-0.19
(sha256
(base32
"1lggr5pnpmdj0cznlhw7ykm1qka3wlymwzfxqql6a4vyb6clrsyz"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-pyo3-macros-backend" ,rust-pyo3-macros-backend-0.19)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))
(home-page "https://github.com/pyo3/pyo3")
(synopsis "Proc macros for PyO3")
(description
"This package provides compiler macros for use with PyO3.")
(license license:asl2.0)))
("rust-syn" ,rust-syn-1))))))
(define-public rust-pyo3-macros-0.18
(package