Subject: [PATCH rust-team v3 28/75] gnu: Add rust-ammonia-3.

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

* gnu/packages/crates-io.scm (rust-ammonia-3): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 32de493d6d..1d7931e875 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1432,6 +1432,32 @@ (define-public rust-alto-3
      "Rust bindings for OpenAL 1.1 and extensions (including EFX).")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ammonia-3
+  (package
+    (name "rust-ammonia")
+    (version "3.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ammonia" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0w01hk3b2k3q53jny6n5l6ayck1qgki7wmannz4hbdwdhg3x3rk4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs
+       (("rust-env-logger" ,rust-env-logger-0.10)
+        ("rust-version-sync" ,rust-version-sync-0.9))
+       #:cargo-inputs (("rust-html5ever" ,rust-html5ever-0.26)
+                       ("rust-maplit" ,rust-maplit-1)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-tendril" ,rust-tendril-0.4)
+                       ("rust-url" ,rust-url-2))))
+    (home-page "https://github.com/rust-ammonia/ammonia")
+    (synopsis "HTML Sanitization")
+    (description "This package provides HTML Sanitization.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-android-activity-0.5
   (package
     (name "rust-android-activity")
-- 
2.41.0