Subject: [PATCH 09/87] gnu: Add rust-asyncgit-0.25.

From: VÖRÖSKŐI András <[email-masked]>
Date: Sat, 24 Feb 2024 21:39:07 +0100

* gnu/packages/crates-vcs.scm (rust-asyncgit-0.25): New variable.

Change-Id: I85832ec9ce83a0d7e172534e04e39758854febaf
---
 gnu/packages/crates-vcs.scm | 44 +++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/crates-vcs.scm b/gnu/packages/crates-vcs.scm
index de4b691743..4442d501da 100644
--- a/gnu/packages/crates-vcs.scm
+++ b/gnu/packages/crates-vcs.scm
@@ -44,6 +44,50 @@ (define-module (gnu packages crates-vcs)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control))
 
+(define-public rust-asyncgit-0.25
+  (package
+    (name "rust-asyncgit")
+    (version "0.25.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "asyncgit" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rpmy8lblr14ia3ryxqkv1f11zmxcqwdzhkr6sbx0la891v8wnz5"))))
+    (native-inputs (list pkg-config git-minimal))
+    (inputs (list libgit2-1.7 libssh2 openssl zlib))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--"
+                            "--skip" "reject_in_subfolder" ; /bin/sh
+                            "--skip" "test_pre_commit_workdir" ; /bin/sh
+                            "--skip" "sync::submodules::tests::test_smoke") ; network
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
+                       ("rust-easy-cast" ,rust-easy-cast-0.5)
+                       ("rust-fuzzy-matcher" ,rust-fuzzy-matcher-0.3)
+                       ("rust-git2" ,rust-git2-0.18)
+                       ("rust-git2-hooks" ,rust-git2-hooks-0.3)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-openssl-sys" ,rust-openssl-sys-0.9)
+                       ("rust-rayon" ,rust-rayon-1)
+                       ("rust-rayon-core" ,rust-rayon-core-1)
+                       ("rust-scopetime" ,rust-scopetime-0.1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-unicode-truncate" ,rust-unicode-truncate-0.2)
+                       ("rust-url" ,rust-url-2))
+       #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.11)
+                                   ("rust-invalidstring" ,rust-invalidstring-0.1)
+                                   ("rust-pretty-assertions" ,rust-pretty-assertions-1)
+                                   ("rust-serial-test" ,rust-serial-test-3)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/extrawurst/gitui")
+    (synopsis "allow using git2 in a asynchronous context")
+    (description "allow using git2 in a asynchronous context")
+    (license license:expat)))
+
 (define-public rust-git-testament-0.2
   (package
     (name "rust-git-testament")
-- 
2.41.0