Subject: [PATCH 20/21] gnu: Add rust-pinentry-0.5.

From: Jaeme Sifat <[email-masked]>
Date: Sat, 28 Oct 2023 18:53:40 -0400

* gnu/packages/crates-io.scm (rust-pinentry-0.5): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: Iba023a2a45e4c541a1d755f90eb4dceef5298707
---
 gnu/packages/crates-io.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c6646278e7..c77bebbcc8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51334,6 +51334,30 @@ (define-public rust-pin-project-1
      "This package provides a crate for safe and ergonomic pin-projection.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-pinentry-0.5
+  (package
+    (name "rust-pinentry")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pinentry" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1j4grhhn4q3f4dycnkxr0lcvlv417ysnvs2fm0mmwsmyd2ybi9dz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-log" ,rust-log-0.4)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-percent-encoding" ,rust-percent-encoding-2)
+                       ("rust-secrecy" ,rust-secrecy-0.8)
+                       ("rust-which" ,rust-which-4)
+                       ("rust-zeroize" ,rust-zeroize-1))))
+    (home-page "https://github.com/str4d/pinentry-rs")
+    (synopsis "API for interacting with pinentry binaries")
+    (description "This package provides an API for interacting with pinentry binaries.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ping-0.4
   (package
     (name "rust-ping")
@@ -84432,7 +84456,7 @@ (define-public rust-wsl-0.1
      "Detect if the program is running under Windows Subsystem for Linux")
     (description
      "This package detects if the program is running under Windows Subsystem
-for Linux")
+for Linux.")
     (license license:expat)))
 
 (define-public rust-wycheproof-0.5
-- 
2.41.0