guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

75/188: gnu: Add rust-crypto-mac-0.4.


From: guix-commits
Subject: 75/188: gnu: Add rust-crypto-mac-0.4.
Date: Mon, 12 Oct 2020 02:24:58 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit 6a849f27509a1985dc364d6afb1084808eba5ed3
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Thu Sep 17 12:26:36 2020 +0530

    gnu: Add rust-crypto-mac-0.4.
    
    * gnu/packages/crates-io.scm (rust-crypto-mac-0.4): New variable.
---
 gnu/packages/crates-io.scm | 29 ++++++++++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f827d4d..f40f9e3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4916,10 +4916,30 @@ Code} (MAC) algorithms.")
         ("rust-generic-array" ,rust-generic-array-0.12)
         ("rust-subtle" ,rust-subtle-1.0))))))
 
-(define-public rust-cssparser-0.27
+(define-public rust-crypto-mac-0.4
   (package
-    (name "rust-cssparser")
-    (version "0.27.2")
+    (name "rust-crypto-mac")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "crypto-mac" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "160ixpghhz5kz16f38kzcyv6lx8wmi4cgbhlhq4nazf678iib43p"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-constant-time-eq" ,rust-constant-time-eq-0.1)
+        ("rust-generic-array" ,rust-generic-array-0.8))))
+    (home-page "https://github.com/RustCrypto/traits";)
+    (synopsis "Trait for Message Authentication Code (MAC) algorithms")
+    (description "This package provides traits for Message Authentication
+Code (MAC) algorithms.")
+    (license (list license:expat license:asl2.0))))
+
     (source
       (origin
         (method url-fetch)
@@ -4932,6 +4952,9 @@ Code} (MAC) algorithms.")
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; Not all files included in the tarball.
+(define-public rust-cssparser-0.27
+    (name "rust-cssparser")
+    (version "0.27.2")
        #:cargo-inputs
        (("rust-cssparser-macros" ,rust-cssparser-macros-0.6)
         ("rust-dtoa-short" ,rust-dtoa-short-0.3)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]