Subject: [PATCH rust-team v2 033/117] gnu: Add rust-ruma-common-0.12.

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

* gnu/packages/crates-io.scm (rust-ruma-common-0.12): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cc06baad1d..4e796d95a7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -64373,6 +64373,60 @@ (define-public rust-rug-1
 floating-point, and complex numbers based on GMP, MPFR and MPC.")
     (license license:lgpl3+)))
 
+(define-public rust-ruma-common-0.12
+  (package
+    (name "rust-ruma-common")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-common" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "119y69i4mh8f0gcr5acswaq56hf0y3g1pizarv6v8iqfqlrlrjiv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-as-variant" ,rust-as-variant-1)
+        ("rust-base64" ,rust-base64-0.21)
+        ("rust-bytes" ,rust-bytes-1)
+        ("rust-form-urlencoded" ,rust-form-urlencoded-1)
+        ("rust-getrandom" ,rust-getrandom-0.2)
+        ("rust-http" ,rust-http-0.2)
+        ("rust-indexmap" ,rust-indexmap-2)
+        ("rust-js-sys" ,rust-js-sys-0.3)
+        ("rust-js-int" ,rust-js-int-0.2)
+        ("rust-konst" ,rust-konst-0.3)
+        ("rust-percent-encoding" ,rust-percent-encoding-2)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-regex" ,rust-regex-1)
+        ("rust-ruma-identifiers-validation"
+         ,rust-ruma-identifiers-validation-0.9)
+        ("rust-ruma-macros" ,rust-ruma-macros-0.12)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-html-form" ,rust-serde-html-form-0.2)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-thiserror" ,rust-thiserror-1)
+        ("rust-tracing" ,rust-tracing-0.1)
+        ("rust-url" ,rust-url-2)
+        ("rust-uuid" ,rust-uuid-1)
+        ("rust-wildmatch" ,rust-wildmatch-2))
+       #:cargo-development-inputs
+       (("rust-assert-matches2" ,rust-assert-matches2-0.1)
+        ("rust-assign" ,rust-assign-1)
+        ("rust-maplit" ,rust-maplit-1)
+        ("rust-trybuild" ,rust-trybuild-1))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'ignore-broken-test
+           (lambda _
+             (setenv "TRYBUILD" "overwrite"))))))
+    (home-page "https://ruma.io/")
+    (synopsis "Common types for other ruma crates")
+    (description "This package provides common types for other ruma
+crates.")
+    (license license:expat)))
+
 (define-public rust-ruma-identifiers-validation-0.9
   (package
     (name "rust-ruma-identifiers-validation")
-- 
2.41.0