[bug#74234,rust-team,v3,21/23] gnu: Add rust-oo7-0.2.

Message ID 20241209011150.1455224-22-aaron.covrig.us@ieee.org
State New
Headers
Series WIP add gnome-authenticator |

Commit Message

Aaron Covrig Dec. 9, 2024, 1:11 a.m. UTC
  From: Giacomo Leidi <goodoldpaul@autistici.org>

* gnu/packages/crates-gtk.scm (rust-oo7-0.2): New variable.

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

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 8c90cafbb9..2654b1501b 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -28,6 +28,7 @@  (define-module (gnu packages crates-gtk)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (gnu packages)
+  #:use-module (gnu packages crates-crypto)
   #:use-module (gnu packages crates-graphics)
   #:use-module (gnu packages crates-io)
   #:use-module (gnu packages crates-windows)
@@ -4143,6 +4144,59 @@  (define-public rust-libadwaita-sys-0.5
        #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-oo7-0.2
+  (package
+    (name "rust-oo7")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "oo7" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "13cpaq7f51gqcspd4097vjr7r2cjpxpn6c02x67dsdizk0xaiv5c"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--"
+                            ;; Missing test files
+                            "--skip=dbus::collection::tests::create_encrypted_item"
+                            "--skip=dbus::collection::tests::create_plain_item"
+                            "--skip=dbus::service::tests::create_collection")
+       #:cargo-inputs (("rust-aes" ,rust-aes-0.8)
+                       ("rust-async-fs" ,rust-async-fs-2)
+                       ("rust-async-io" ,rust-async-io-2)
+                       ("rust-async-lock" ,rust-async-lock-3)
+                       ("rust-async-net" ,rust-async-net-2)
+                       ("rust-blocking" ,rust-blocking-1)
+                       ("rust-cbc" ,rust-cbc-0.1)
+                       ("rust-cipher" ,rust-cipher-0.4)
+                       ("rust-digest" ,rust-digest-0.10)
+                       ("rust-futures-lite" ,rust-futures-lite-2)
+                       ("rust-futures-util" ,rust-futures-util-0.3)
+                       ("rust-hkdf" ,rust-hkdf-0.12)
+                       ("rust-hmac" ,rust-hmac-0.12)
+                       ("rust-md-5" ,rust-md-5-0.10)
+                       ("rust-num" ,rust-num-0.4)
+                       ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.8)
+                       ("rust-openssl" ,rust-openssl-0.10)
+                       ("rust-pbkdf2" ,rust-pbkdf2-0.12)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-sha2" ,rust-sha2-0.10)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-tracing" ,rust-tracing-0.1)
+                       ("rust-zbus" ,rust-zbus-3)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3)
+                                   ("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/bilelmoussaoui/oo7")
+    (synopsis "Rust Secret Service provider")
+    (description
+     "The Rust Secret Service provider, @emph{oo7}, provides helper methods to
+store and retrieve secrets and uses either the DBus interface or the file
+backend based on whether the application is sandboxed or not.")
+    (license license:expat)))
+
 (define-public rust-pango-0.20
   (package
     (name "rust-pango")