Subject: [bug#71780] [PATCH v3 4/7] gnu: Add go-github-com-emersion-go-bcrypt.

From: Jean SIMARD <[email-masked]>
Date: Sat, 27 Jul 2024 13:08:06 +0000

* gnu/packages/golang-crypto.scm (go-github-com-emersion-go-bcrypt): New variable.

Change-Id: Ib627f26eebe1e530668d5b8f971d082fb0ebbe77
---
 gnu/packages/golang-crypto.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index f1ff1c5bd8..d5e712a44d 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2023, 2024 Artyom V. Poptsov <[email-masked]>
 ;;; Copyright © 2024 Jesse Eisses <[email-masked]>
 ;;; Copyright © 2024 Troy Figiel <[email-masked]>
+;;; Copyright © 2024 Jean Simard <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -477,6 +478,29 @@ (define-public go-github-com-dvsekhvalnov-jose2go
 library.")
     (license license:expat)))
 
+(define-public go-github-com-emersion-go-bcrypt
+  (package
+    (name "go-github-com-emersion-go-bcrypt")
+    (version "0.0.0-20170822072041-6e724a1baa63")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/emersion/go-bcrypt")
+             (commit (go-version->git-ref version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1pchrgs05w30iqbh4d6iys4wvlyajsdwchp5mkf59amgsbyjaqgm"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/emersion/go-bcrypt"))
+    (propagated-inputs (list go-golang-org-x-crypto))
+    (home-page "https://github.com/emersion/go-bcrypt")
+    (synopsis "Extract of bcrypt from golang.org/x/crypto/bcrypt")
+    (description "An extract bcrypt from golang.org/x/crypto/bcrypt.")
+    (license license:bsd-3)))
+
 (define-public go-github-com-emersion-go-pgpmail
   (package
     (name "go-github-com-emersion-go-pgpmail")
-- 
2.45.2