Subject: [bug#69257] [PATCH rust-team v3 29/75] gnu: Add rust-linkify-0.9.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:01 +0200

* gnu/packages/crates-io.scm (rust-linkify-0.9): Add variable.
(rust-linkify-0.4): Inherit from rust-linkify-0.9.
---
 gnu/packages/crates-io.scm | 37 ++++++++++++++++++++++++++++++-------
 1 file changed, 30 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1d7931e875..2d1fb01dc3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39757,23 +39757,28 @@ (define-public rust-linked-hash-map-0.3
         ("rust-serde" ,rust-serde-0.8)
         ("rust-serde-test" ,rust-serde-test-0.8))))))
 
-(define-public rust-linkify-0.4
+(define-public rust-linkify-0.9
   (package
     (name "rust-linkify")
-    (version "0.4.0")
+    (version "0.9.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "linkify" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "15i0q81vrhm4asskacy2z83fyj09ivcff0km82gwbli4vlkib583"))))
+        (base32 "1xfgz0lh1rbirzi28rnl0378w967jwhkd4v0qqmi2n430225ipcn"))
+       (modules '((guix build utils)))
+       (snippet '(substitute* "Cargo.toml"
+                   (("= 0.3.2")
+                    "0.3.2")))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-memchr" ,rust-memchr-2))
-       #:cargo-development-inputs
-       (("rust-version-sync" ,rust-version-sync-0.8))))
+     `(#:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-doc-comment" ,rust-doc-comment-0.3)
+        ("rust-plotters-backend" ,rust-plotters-backend-0.3))
+       #:cargo-inputs (("rust-memchr" ,rust-memchr-2))))
     (home-page "https://github.com/robinst/linkify")
     (synopsis "Find URLs and email addresses in plain text")
     (description
@@ -39782,6 +39787,24 @@ (define-public rust-linkify-0.4
 punctuation.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-linkify-0.4
+  (package
+    (inherit rust-linkify-0.9)
+    (name "rust-linkify")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "linkify" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "15i0q81vrhm4asskacy2z83fyj09ivcff0km82gwbli4vlkib583"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-memchr" ,rust-memchr-2))
+       #:cargo-development-inputs
+       (("rust-version-sync" ,rust-version-sync-0.8))))))
+
 (define-public rust-linux-keyutils-0.2
   (package
     (name "rust-linux-keyutils")
-- 
2.41.0