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