diff mbox series

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

Message ID b672e239df26275a2c4fd2a964cd489a7de298f9.1714820130.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:35 a.m. UTC
* 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 mbox series

Patch

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")