Subject: [bug#71076] [PATCH 74/81] gnu: Add rust-ruma-federation-api-0.9.

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

* gnu/packages/crates-io.scm (rust-ruma-federation-api-0.9): Add
variable.
(rust-ruma-federation-api-0.8): Inherit from
rust-ruma-federation-api-0.9.

Change-Id: I90d796b4db26e5a6cb628b49dec7940631456fe1
---
 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 0eb3df1268..ef2584904c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66926,8 +66926,36 @@ (define-public rust-ruma-events-0.27
         ("rust-maplit" ,rust-maplit-1)
         ("rust-trybuild" ,rust-trybuild-1))))))
 
+(define-public rust-ruma-federation-api-0.9
+  (package
+    (name "rust-ruma-federation-api")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-federation-api" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "0idgfbbl5p28l253rbx5js3g8cwy4ja7h4h5cgimarmpfamxwhza"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-js-int-0.2 rust-ruma-common-0.13
+                           rust-ruma-events-0.28 rust-serde-1
+                           rust-serde-json-1)
+      #:cargo-development-inputs (list rust-assert-matches2-0.1
+                                       rust-http-1)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Types for Matrix server-server API endpoints")
+    (description
+      "This package provides types for the endpoints in the Matrix
+server-server API.")
+    (license license:expat)))
+
 (define-public rust-ruma-federation-api-0.8
   (package
+    (inherit rust-ruma-federation-api-0.9)
     (name "rust-ruma-federation-api")
     (version "0.8.0")
     (source
@@ -66937,7 +66965,6 @@ (define-public rust-ruma-federation-api-0.8
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1rrzvxzjdxwpxr6d5k5yi8cz7kisqwqa3wlasm97ccmw4wgir471"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-js-int" ,rust-js-int-0.2)
                        ("rust-ruma-common" ,rust-ruma-common-0.12)
@@ -66946,12 +66973,7 @@ (define-public rust-ruma-federation-api-0.8
                        ("rust-serde-json" ,rust-serde-json-1))
        #:cargo-development-inputs
        (("rust-assert-matches2" ,rust-assert-matches2-0.1)
-        ("rust-http" ,rust-http-0.2))))
-    (home-page "https://www.ruma.io/")
-    (synopsis "Types for Matrix server-server API endpoints")
-    (description "This package provides types for the endpoints in the
-Matrix server-server API.")
-    (license license:expat)))
+        ("rust-http" ,rust-http-0.2))))))
 
 (define-public rust-ruma-html-0.2
   (package
-- 
2.41.0