Subject: [bug#69257] [PATCH rust-team v2 110/117] WIP: gnu: Add rust-html2pango-0.6.

From: Herman Rimm <[email-masked]>
Date: Sun, 28 Apr 2024 20:58:54 +0200

* gnu/packages/crates-io.scm (rust-html2pango-0.6): Add variable.

Change-Id: Ic0f7cd33874cc960fd1afb5fcca7d3cf8b6ceea0
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 587350b36b..efcae7b8de 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32459,6 +32459,35 @@ (define-public rust-html-escape-0.2
 characters in HTML, decoding and unescaping HTML entities as well.")
     (license license:expat)))
 
+(define-public rust-html2pango-0.6
+  (package
+    (name "rust-html2pango")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "html2pango" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "06q9r04n2knq0nr8g2xb7n791cg217r1fi59h4zh6f057k663w55"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-ammonia" ,rust-ammonia-3)
+                       ("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-html5ever" ,rust-html5ever-0.26)
+                       ("rust-linkify" ,rust-linkify-0.9)
+                       ("rust-maplit" ,rust-maplit-1)
+                       ("rust-markup5ever-rcdom" ,rust-markup5ever-rcdom-0.2)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-regex" ,rust-regex-1))
+       #:cargo-development-inputs
+       (("rust-pretty-assertions" ,rust-pretty-assertions-1))))
+    (home-page "https://gitlab.gnome.org/World/html2pango")
+    (synopsis "Library to convert html to pango.")
+    (description
+      "This package provides a library to convert html to pango.")
+    (license license:gpl3+)))
+
 (define-public rust-html5ever-0.26
   (package
     (name "rust-html5ever")
-- 
2.41.0