Subject: [bug#71914] [PATCH 07/10] gnu: Add rust-pyo3-macros-backend-0.21.

From: Nguyễn Gia Phong <[email-masked]>
Date: Wed, 3 Jul 2024 16:57:58 +0900

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

Change-Id: Ia3a833ffc0a4107ae995754f13887103f5243402
---
 gnu/packages/crates-io.scm | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c7a955a2d7fd..acf1fc8f83ea 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51447,17 +51447,17 @@ (define-public rust-pyo3-log-0.8
 extension to python.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-pyo3-macros-backend-0.20
+(define-public rust-pyo3-macros-backend-0.21
   (package
     (name "rust-pyo3-macros-backend")
-    (version "0.20.2")
+    (version "0.21.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pyo3-macros-backend" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "07w8x1wxm1ksx72jb0w1p2ssmg9zh95dsv4xmxyq4iqqhpa11j8g"))))
+        (base32 "0p58yp8ajlc8bq56wghw1syrjszmadasasdfpsjy3d9dychhf9h8"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-heck" ,rust-heck-0.4)
@@ -51470,6 +51470,24 @@ (define-public rust-pyo3-macros-backend-0.20
      "This package provides code generation backends for PyO3.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pyo3-macros-backend-0.20
+  (package
+    (inherit rust-pyo3-macros-backend-0.21)
+    (name "rust-pyo3-macros-backend")
+    (version "0.20.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pyo3-macros-backend" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "11b1z7qnbdnd9hy74ds3xcjx3mjkz43mvpnan32ljccwpdl9nzkw"))))
+    (arguments
+     `(#:cargo-inputs (("rust-heck" ,rust-heck-0.4)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))))
+
 (define-public rust-pyo3-macros-backend-0.19
   (package
     (inherit rust-pyo3-macros-backend-0.20)
-- 
2.45.2