Subject: [PATCH rust-team v4 3/5] gnu: rust-pear: Update to 0.2.9

From: Aaron Covrig <[email-masked]>
Date: Fri, 4 Oct 2024 14:27:52 -0400

* gnu/packages/crates-io.scm (rust-pear-0.2): Update to 0.2.9
* gnu/packages/crates-io.scm (rust-pear-codegen-0.2): Update to 0.2.9
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++++++-------------
 1 file changed, 21 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d4bbde1200..dd26496ece 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -53056,17 +53056,18 @@ (define-public rust-pdqselect-0.1
 (define-public rust-pear-0.2
   (package
     (name "rust-pear")
-    (version "0.2.8")
+    (version "0.2.9")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pear" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1j03s6m80iqldnm6jzh3k1fbyk0lxirx8bi4ivgq3k3sq7va1k2c"))))
+        (base32 "0rxlyizzaqq6lswgyfdxjxd3dyb1jfml9gwfpbx5g1j8rq0amvmx"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-inlinable-string" ,rust-inlinable-string-0.1)
+     (list
+      #:cargo-inputs `(("rust-inlinable-string" ,rust-inlinable-string-0.1)
                        ("rust-pear-codegen" ,rust-pear-codegen-0.2)
                        ("rust-yansi" ,rust-yansi-1))))
     (home-page "https://crates.io/crates/pear")
@@ -53093,26 +53094,33 @@ (define-public rust-pear-0.1
 (define-public rust-pear-codegen-0.2
   (package
     (name "rust-pear-codegen")
-    (version "0.2.8")
+    (version "0.2.9")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pear_codegen" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))))
+        (base32 "0izijffdd2xs762497mk0xr7xwmyw62dzdqjz12v70n0bnc5pasb"))
+       (modules '((guix build utils)))
+       (snippet '(begin
+                   ;; Add missing development dependency (for tests)
+                   (substitute* "Cargo.toml"
+                     (("\\[dev-dependencies\\]" all)
+                      (string-append "[dev-dependencies.pear]" "\n"
+                                     "version = \"0.2.9\""))) #t))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f  ; use of undeclared crate or module `pear`
-       #:cargo-inputs
-       (("rust-proc-macro2" ,rust-proc-macro2-1)
-        ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
-        ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-2))))
+     (list
+      #:cargo-inputs `(("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+      ;; Add missing dev crate
+      #:cargo-development-inputs `(("rust-pear" ,rust-pear-0.2))))
     (home-page "https://crates.io/crates/pear_codegen")
     (synopsis "Codegen for pear")
-    (description
-     "This package provides a (codegen) pear is a fruit.")
+    (description "This package provides a (codegen) pear is a fruit.")
     (license (list license:expat license:asl2.0))))
 
 (define-public rust-pear-codegen-0.1
-- 
2.46.0