Subject: [bug#69257] [PATCH 179/228] gnu: Add rust-pkcs7-0.4.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:09:09 +0100

* gnu/packages/crates-crypto.scm (rust-pkcs7-0.4): Add variable.

Change-Id: I35ff754d24ac50a25fa94149bdf50291ff3a46f5
---
 gnu/packages/crates-crypto.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index cfda18a0de..827d1b6561 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -3475,6 +3475,34 @@ (define-public rust-pkcs5-0.3
         ("rust-sha2" ,rust-sha2-0.9)
         ("rust-spki" ,rust-spki-0.4))))))
 
+(define-public rust-pkcs7-0.4
+  (package
+    (name "rust-pkcs7")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pkcs7" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rvp9gm7vzcbbzz6vr6xz6ri2szgxm35j0zk5dhf01b40sz7i4fp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-der" ,rust-der-0.7)
+                       ("rust-spki" ,rust-spki-0.7)
+                       ("rust-x509-cert" ,rust-x509-cert-0.2))
+       #:cargo-development-inputs
+       (("rust-der" ,rust-der-0.7)
+        ("rust-hex-literal" ,rust-hex-literal-0.4)
+        ("rust-x509-cert" ,rust-x509-cert-0.2))))
+    (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs7")
+    (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #7")
+    (description
+     "This package is a pure Rust implementation of Public-Key
+Cryptography Standards (PKCS) #7: Cryptographic Message Syntax
+Specification (RFC 5652).")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-pkcs8-0.10
   (package
     (name "rust-pkcs8")
-- 
2.41.0