Subject: [bug#71076] [PATCH 70/81] gnu: Add rust-ruma-signatures-0.15.

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

* gnu/packages/crates-io.scm (rust-ruma-signatures-0.15): Add variable.
(rust-ruma-signatures-0.14): Inherit from rust-ruma-signatures-0.15.

Change-Id: Id2c8f033999be01bf9bd2f43cf64ddb2196ab9c7
---
 gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 85c6926277..ba36290d15 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67145,8 +67145,42 @@ (define-public rust-ruma-server-util-0.2
 applications.")
     (license license:expat)))
 
+(define-public rust-ruma-signatures-0.15
+  (package
+    (name "rust-ruma-signatures")
+    (version "0.15.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-signatures" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "19ahjnayjpzbipdrkbhfynm819iyn2y3726sir9znd24iscdjaqx"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-base64-0.22
+                           rust-ed25519-dalek-2
+                           rust-pkcs8-0.10
+                           rust-rand-0.8
+                           rust-ruma-common-0.13
+                           rust-serde-json-1
+                           rust-sha2-0.10
+                           rust-subslice-0.2
+                           rust-thiserror-1)
+      #:cargo-development-inputs (list rust-assert-matches2-0.1
+                                       rust-insta-1)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Digital signatures following the Matrix specification")
+    (description
+      "This package provides digital signatures according to the Matrix
+specification.")
+    (license license:expat)))
+
 (define-public rust-ruma-signatures-0.14
   (package
+    (inherit rust-ruma-signatures-0.15)
     (name "rust-ruma-signatures")
     (version "0.14.0")
     (source
@@ -67156,7 +67190,6 @@ (define-public rust-ruma-signatures-0.14
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "12f76winxclvwgylm5kqy3bqfj7x7x9g4xzkh4nhbfrf7nrkiarh"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-base64" ,rust-base64-0.21)
                        ("rust-ed25519-dalek" ,rust-ed25519-dalek-2)
@@ -67169,13 +67202,7 @@ (define-public rust-ruma-signatures-0.14
                        ("rust-thiserror" ,rust-thiserror-1))
        #:cargo-development-inputs
        (("rust-assert-matches2" ,rust-assert-matches2-0.1)
-        ("rust-insta" ,rust-insta-1))))
-    (home-page "https://www.ruma.io/")
-    (synopsis "Digital signatures according to the Matrix specification")
-    (description
-      "This package provides digital signatures according to the Matrix
-specification.")
-    (license license:expat)))
+        ("rust-insta" ,rust-insta-1))))))
 
 (define-public rust-ruma-state-res-0.11
   (package
-- 
2.41.0