Subject: [bug#49394] [PATCH 13/21] gnu: Add rust-streebog-0.9

From: Domagoj Stolfa <[email-masked]>
Date: Sun, 4 Jul 2021 17:31:55 +0100

* gnu/packages/crates-io.scm (rust-streebog-0.9): New public variable.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c2221bb87d..b4609f0f52 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44056,6 +44056,36 @@ UTF-8.")
     (license (list license:unlicense
                    license:expat))))
 
+(define-public rust-streebog-0.9
+  (package
+    (name "rust-streebog")
+    (version "0.9.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "streebog" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0lz7ajfqdqbrnj01m1xc01ch1g0s9391ma36qqkiyf1074d1r8nr"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-block-buffer" ,rust-block-buffer-0.9)
+         ("rust-digest" ,rust-digest-0.9)
+         ("rust-opaque-debug" ,rust-opaque-debug-0.3))
+        #:cargo-development-inputs
+        (("rust-digest" ,rust-digest-0.9)
+         ("rust-hex-literal" ,rust-hex-literal-0.2))))
+    (home-page
+      "https://github.com/RustCrypto/hashes")
+    (synopsis
+      "Streebog (GOST R 34.11-2012) hash function")
+    (description
+      "Streebog (GOST R 34.11-2012) hash function")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-string-0.2
   (package
     (name "rust-string")
-- 
2.32.0