gnu: Add rust-pyo3-macros-0.21.

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

Change-Id: I90c07ee66aff098250345d11d120e1c62203b7e0
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Nguyễn Gia Phong 2024-07-03 16:57:59 +09:00 committed by Efraim Flashner
parent 98d39752fe
commit 59e445ca17
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -58394,29 +58394,50 @@ (define-public rust-pyo3-macros-backend-0.15
("rust-syn" ,rust-syn-1)))) ("rust-syn" ,rust-syn-1))))
(native-inputs (list python)))) (native-inputs (list python))))
(define-public rust-pyo3-macros-0.20 (define-public rust-pyo3-macros-0.21
(package (package
(name "rust-pyo3-macros") (name "rust-pyo3-macros")
(version "0.20.2") (version "0.21.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (crate-uri "pyo3-macros" version)) (uri (crate-uri "pyo3-macros" version))
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "1lsfyx1shdyi7zybs3maakh2h3zsij3l5wap35qval0dwjs3ixq5")))) (base32 "0g65z9yj2iffjrkrkzan9hwhhj7rrchh7lfv64dy30h6zill1cvp"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) `(#:cargo-inputs
("rust-pyo3-macros-backend" ,rust-pyo3-macros-backend-0.20) (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1) ("rust-pyo3-macros-backend" ,rust-pyo3-macros-backend-0.21)
("rust-syn" ,rust-syn-2)))) ("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-2))))
(native-inputs (list python-minimal))
(home-page "https://github.com/pyo3/pyo3") (home-page "https://github.com/pyo3/pyo3")
(synopsis "Proc macros for PyO3") (synopsis "Proc macros for PyO3")
(description (description
"This package provides compiler macros for use with PyO3.") "This package provides compiler macros for use with PyO3.")
(license (list license:expat license:asl2.0)))) (license (list license:expat license:asl2.0))))
(define-public rust-pyo3-macros-0.20
(package
(inherit rust-pyo3-macros-0.21)
(name "rust-pyo3-macros")
(version "0.20.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "pyo3-macros" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0n61s98qb2qc1wlda3bz4r0wi0vsr9p4lj2yr5g0bf01z8hcf1bk"))))
(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))))))
(define-public rust-pyo3-macros-0.19 (define-public rust-pyo3-macros-0.19
(package (package
(inherit rust-pyo3-macros-0.20) (inherit rust-pyo3-macros-0.20)
@ -58434,7 +58455,8 @@ (define-public rust-pyo3-macros-0.19
(("rust-proc-macro2" ,rust-proc-macro2-1) (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-pyo3-macros-backend" ,rust-pyo3-macros-backend-0.19) ("rust-pyo3-macros-backend" ,rust-pyo3-macros-backend-0.19)
("rust-quote" ,rust-quote-1) ("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1)))))) ("rust-syn" ,rust-syn-1))))
(native-inputs '())))
(define-public rust-pyo3-macros-0.18 (define-public rust-pyo3-macros-0.18
(package (package