Subject: [PATCH v4 25/47] gnu: Add rust-html2pango-0.3.

From: Leo Prikler <[email-masked]>
Date: Thu, 11 Mar 2021 23:07:34 +0100

* gnu/packages/crates-gtk.scm (rust-html2pango-0.3): New variable.
---
 gnu/packages/crates-gtk.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 61dc047ac4..917006cb9a 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1569,6 +1569,40 @@ GStreamer.")
     (description "This package provides FFI bindings to libgtk-3.")
     (license license:expat)))
 
+(define-public rust-html2pango-0.3
+  (package
+    (name "rust-html2pango")
+    (version "0.3.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "html2pango" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0f0phim3bgmq0gcsvm9q8674190d5v5idlsqyxykxjf36d02i6s6"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-ammonia" ,rust-ammonia-3)
+         ("rust-anyhow" ,rust-anyhow-1)
+         ("rust-html5ever" ,rust-html5ever-0.25)
+         ("rust-lazy-static" ,rust-lazy-static-1)
+         ("rust-linkify" ,rust-linkify-0.4)
+         ("rust-maplit" ,rust-maplit-1)
+         ("rust-markup5ever-rcdom"
+          ,rust-markup5ever-rcdom-0.1)
+         ("rust-regex" ,rust-regex-1))
+        #:cargo-development-inputs
+        (("rust-pretty-assertions"
+          ,rust-pretty-assertions-0.6))))
+    (home-page "https://gitlab.gnome.org/World/html2pango")
+    (synopsis "Convert HTML to pango.")
+    (description "html2pango converts html tags to Pango markup.  It also
+converts raw links to http links and strips unwanted tags.")
+    (license license:gpl3)))
+
 (define-public rust-pango-0.9
   (package
     (name "rust-pango")
-- 
2.30.1