Subject: [bug#70146] [PATCH 114/147] gnu: Add rust-ssh2-0.9.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:05:06 +0200

* gnu/packages/crates-io.scm (rust-ssh2-0.9): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6f650e37a4..7cbef0a67c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -65504,6 +65504,31 @@ (define-public rust-sqlite3-sys-0.13
        (("rust-libc" ,rust-libc-0.2)
         ("rust-sqlite3-src" ,rust-sqlite3-src-0.3))))))
 
+(define-public rust-ssh2-0.9
+  (package
+    (name "rust-ssh2")
+    (version "0.9.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ssh2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0malilb9lbzlh3i24nb6s61lmz5as801swy30ib6v7sm20cldzp7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-libssh2-sys" ,rust-libssh2-sys-0.3)
+                       ("rust-parking-lot" ,rust-parking-lot-0.11))))
+    (home-page "https://github.com/alexcrichton/ssh2-rs")
+    (synopsis "High-level bindings of libssh2 for Rust")
+    (description "This package provides high-level idiomatic bindings to
+libssh2 for interacting with SSH servers and executing remote commands,
+forwarding local ports, etc.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-st-map-0.1
   (package
     (name "rust-st-map")
-- 
2.41.0