Subject: [bug#71076] [PATCH 65/81] gnu: Add rust-ruma-html-0.2.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:59:10 +0200

* gnu/packages/crates-io.scm (rust-ruma-html-0.2): Add variable.
(rust-ruma-html-0.1): Inherit from rust-ruma-html-0.2.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 96828a5d8a..bc5686611e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66868,8 +66868,36 @@ (define-public rust-ruma-federation-api-0.8
 Matrix server-server API.")
     (license license:expat)))
 
+(define-public rust-ruma-html-0.2
+  (package
+    (name "rust-ruma-html")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-html" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0zrxc5cgg3p3pqpsfra7s4yla8db1hzplk1dzk8v8pysg63r8vfb"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-as-variant-1
+                           rust-html5ever-0.27
+                           rust-phf-0.11
+                           rust-ruma-common-0.13
+                           rust-tracing-0.1
+                           rust-wildmatch-2)
+      #:cargo-development-inputs (list rust-assert-matches2-0.1)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Opinionated HTML parsing and manipulating")
+    (description
+     "This package provides Opinionated HTML parsing and manipulating.")
+    (license license:expat)))
+
 (define-public rust-ruma-html-0.1
   (package
+    (inherit rust-ruma-html-0.2)
     (name "rust-ruma-html")
     (version "0.1.0")
     (source
@@ -66879,18 +66907,12 @@ (define-public rust-ruma-html-0.1
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0nrsm1rp1psk97kvn2cjpn52a0g2kv42i9ab2zi5z5m6n54s2x4n"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-as-variant" ,rust-as-variant-1)
                        ("rust-html5ever" ,rust-html5ever-0.26)
                        ("rust-phf" ,rust-phf-0.11)
                        ("rust-tracing" ,rust-tracing-0.1)
-                       ("rust-wildmatch" ,rust-wildmatch-2))))
-    (home-page "https://www.ruma.io/")
-    (synopsis "Opinionated HTML parsing and manipulating")
-    (description
-      "This package provides opinionated HTML parsing and manipulating.")
-    (license license:expat)))
+                       ("rust-wildmatch" ,rust-wildmatch-2))))))
 
 (define-public rust-ruma-identifiers-validation-0.9
   (package
-- 
2.41.0