Subject: [bug#74551] [PATCH rust-team v3 53/73] gnu: rust-pest-meta-2: Update to 2.7.14.

From: Aaron Covrig <[email-masked]>
Date: Mon, 2 Dec 2024 22:00:33 -0500

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-io.scm (rust-pest-meta-2): Update to 2.7.14.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 209a2dea9f..ad834e532e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -55859,27 +55859,34 @@ (define-public rust-pest-generator-2
 (define-public rust-pest-meta-2
   (package
     (name "rust-pest-meta")
-    (version "2.6.0")
+    (version "2.7.14")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pest_meta" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32
-         "04ala2f51zxninvajvvqk5gq80qxyp2v6cpfv3zkj7mpiqplankl"))))
+        (base32 "0gfhci2whiz3kiw2k2asj2lcj8rrrp4hm69whdvcpngl1jks4pdp"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (delete-file "Cargo.toml")
+           (rename-file "Cargo.toml.orig" "Cargo.toml")
+           (substitute* "Cargo.toml"
+             ;; Correct path to pest dependency
+             (("pest =.*") "pest = \"2.7.14\"\n")
+             ;; Remove pinned requirement on cargo
+             (("cargo =.*") "cargo = { version = \">=0.81.0\", optional = true }\n"))))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f          ; Not all test files included.
-       #:cargo-inputs
-       (("rust-once-cell" ,rust-once-cell-1)
-        ("rust-pest" ,rust-pest-2)
-        ("rust-sha2" ,rust-sha2-0.10))))
+     `(#:tests? #f ;Not all test files included.
+       #:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-pest" ,rust-pest-2)
+                       ("rust-cargo" ,rust-cargo))
+       #:cargo-development-inputs (("rust-sha2" ,rust-sha2-0.10))))
     (home-page "https://pest.rs")
     (synopsis "Pest meta language parser and validator")
-    (description
-     "Pest meta language parser and validator.")
+    (description "Pest meta language parser and validator.")
     (license (list license:asl2.0 license:expat))))
 
 (define-public rust-petgraph-0.6
-- 
2.47.0