Subject: [bug#49383] [PATCH v2 11/26] gnu: Add rust-crypto-mac-0.11

From: Domagoj Stolfa <[email-masked]>
Date: Sun, 11 Jul 2021 15:55:43 +0100

* gnu/packages/crates-io.scm (rust-crypto-mac-0.11): New public variable.
---
 gnu/packages/crates-io.scm | 41 +++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d34b84b58b..b963d389f4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10892,8 +10892,36 @@ number ``crunching``.")
 common cryptographic algorithms.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-crypto-mac-0.11
+  (package
+    (name "rust-crypto-mac")
+    (version "0.11.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "crypto-mac" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0ghh3qmjf7hv580zqdk4yrbg99v57jx773zb7lzi7j4hj24bdyi5"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-blobby" ,rust-blobby-0.3)
+         ("rust-cipher" ,rust-cipher-0.3)
+         ("rust-generic-array" ,rust-generic-array-0.14)
+         ("rust-subtle" ,rust-subtle-2))))
+    (home-page
+      "https://github.com/RustCrypto/traits")
+    (synopsis "Trait for Message Authentication Code (MAC) algorithms")
+    (description "This package provides trait for @dfn{Message Authentication
+Code} (MAC) algorithms.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-crypto-mac-0.10
   (package
+    (inherit rust-crypto-mac-0.11)
     (name "rust-crypto-mac")
     (version "0.10.0")
     (source
@@ -10911,16 +10939,11 @@ common cryptographic algorithms.")
         (("rust-blobby" ,rust-blobby-0.3)
          ("rust-cipher" ,rust-cipher-0.3)
          ("rust-generic-array" ,rust-generic-array-0.14)
-         ("rust-subtle" ,rust-subtle-2))))
-    (home-page "https://github.com/RustCrypto/traits")
-    (synopsis "Trait for Message Authentication Code (MAC) algorithms")
-    (description "This package provides trait for @dfn{Message Authentication
-Code} (MAC) algorithms.")
-    (license (list license:expat license:asl2.0))))
+         ("rust-subtle" ,rust-subtle-2))))))
 
 (define-public rust-crypto-mac-0.8
   (package
-    (inherit rust-crypto-mac-0.10)
+    (inherit rust-crypto-mac-0.11)
     (name "rust-crypto-mac")
     (version "0.8.0")
     (source
@@ -10940,7 +10963,7 @@ Code} (MAC) algorithms.")
 
 (define-public rust-crypto-mac-0.7
   (package
-    (inherit rust-crypto-mac-0.8)
+    (inherit rust-crypto-mac-0.11)
     (name "rust-crypto-mac")
     (version "0.7.0")
     (source
@@ -10960,7 +10983,7 @@ Code} (MAC) algorithms.")
 
 (define-public rust-crypto-mac-0.5
   (package
-    (inherit rust-crypto-mac-0.10)
+    (inherit rust-crypto-mac-0.11)
     (name "rust-crypto-mac")
     (version "0.5.2")
     (source
-- 
2.32.0