Subject: [PATCH 28/38] gnu: Add rust-zip-2.

From: Wilko Meyer <[email-masked]>
Date: Wed, 10 Jul 2024 01:37:08 +0200

* gnu/packages/crates-io.scm (rust-zip-2): New variable.

Change-Id: Iddd648e6d2933d1641ae2b798a80d4ab1c2516c1
---
 gnu/packages/crates-io.scm | 43 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c1c488572e..b9850873b8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -91314,6 +91314,49 @@ (define-public rust-zeroize-derive-1
     (description "This crate provides custom derive support for Zeroize.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-zip-2
+  (package
+    (name "rust-zip")
+    (version "2.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "zip" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0f9xapamfrsnd467siq0v9na1c4wi2y059n5kfk2ld1n213jnnkp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-aes" ,rust-aes-0.8)
+                       ("rust-arbitrary" ,rust-arbitrary-1)
+                       ("rust-bzip2" ,rust-bzip2-0.4)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-constant-time-eq" ,rust-constant-time-eq-0.3)
+                       ("rust-crc32fast" ,rust-crc32fast-1)
+                       ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
+                       ("rust-deflate64" ,rust-deflate64-0.1)
+                       ("rust-displaydoc" ,rust-displaydoc-0.2)
+                       ("rust-flate2" ,rust-flate2-1)
+                       ("rust-hmac" ,rust-hmac-0.12)
+                       ("rust-indexmap" ,rust-indexmap-2)
+                       ("rust-lzma-rs" ,rust-lzma-rs-0.3)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-pbkdf2" ,rust-pbkdf2-0.12)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-sha1" ,rust-sha1-0.10)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-zeroize" ,rust-zeroize-1)
+                       ("rust-zopfli" ,rust-zopfli-0.8)
+                       ("rust-zstd" ,rust-zstd-0.13))))
+    (native-inputs (list pkg-config))
+    (inputs (list (list zstd "lib")))
+    (home-page "https://github.com/zip-rs/zip2.git")
+    (synopsis "Library for reading and writing zip files")
+    (description
+     "This package provides lLibrary to support the reading and writing of zip files.")
+    (license license:expat)))
+
 (define-public rust-zip-0.6
   (package
     (name "rust-zip")
-- 
2.41.0