Subject: [PATCH 05/10] gnu: Add rust-pyo3-build-config-0.21.

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

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

Change-Id: I7ee7893dd414c5a12e6b085c32500d234fc24b41
---
 gnu/packages/crates-io.scm | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 85b87e39f8c1..043a75cbc1e7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51206,17 +51206,17 @@ (define-public rust-pure-rust-locales-0.7
     (arguments
      (list #:tests? #f))))  ; Not all files included.
 
-(define-public rust-pyo3-build-config-0.20
+(define-public rust-pyo3-build-config-0.21
   (package
     (name "rust-pyo3-build-config")
-    (version "0.20.2")
+    (version "0.21.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pyo3-build-config" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1gk3a4y8jc2z1j3hb9xjg1gfvcd7s6ph1wwkcbr039p5iw6nyhh7"))))
+        (base32 "0l0vxvnqsbjrpdmysnwaljf4q3zcr1kb526qq23svzgs6mcdz0vq"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)
@@ -51232,6 +51232,25 @@ (define-public rust-pyo3-build-config-0.20
 ecosystem.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pyo3-build-config-0.20
+  (package
+    (inherit rust-pyo3-build-config-0.21)
+    (name "rust-pyo3-build-config")
+    (version "0.20.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pyo3-build-config" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ms83n1qa81989c6pakpznifalvxv5fiyyji23732lizvr2mgany"))))
+    (arguments
+     `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-python3-dll-a" ,rust-python3-dll-a-0.2)
+                       ("rust-python3-dll-a" ,rust-python3-dll-a-0.2)
+                       ("rust-target-lexicon" ,rust-target-lexicon-0.12)
+                       ("rust-target-lexicon" ,rust-target-lexicon-0.12))))))
+
 (define-public rust-pyo3-build-config-0.19
   (package
     (inherit rust-pyo3-build-config-0.20)
-- 
2.45.2