gnu: Add go-github-com-emersion-go-pgpmail.
author(unmatched-parenthesis <paren@disroot.org>
Fri, 21 Oct 2022 21:11:19 +0000 (22:11 +0100)
committerRaghav Gururajan <rg@raghavgururajan.name>
Sun, 27 Nov 2022 15:31:03 +0000 (10:31 -0500)
* gnu/packages/golang.scm (go-github-com-emersion-go-pgpmail): New
  variable.

Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
gnu/packages/golang.scm

index 75be734..4dba288 100644 (file)
@@ -10805,6 +10805,35 @@ text-only mail clients to display them.")
 library geared towards parsing MIME encoded emails.")
     (license license:expat)))
 
+(define-public go-github-com-emersion-go-pgpmail
+  (package
+    (name "go-github-com-emersion-go-pgpmail")
+    (version "0.2.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/emersion/go-pgpmail")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0ar26b0apw5bxn58qfn1a79cxigbmrqm1irh1rb7x57fydihc7wm"))))
+    (build-system go-build-system)
+    (arguments
+     (list ;; tests don't support our version of protonmail/go-crypto; see
+           ;; <https://github.com/emersion/go-pgpmail/issues/12>
+           #:tests? #f
+           #:import-path "github.com/emersion/go-pgpmail"))
+    (propagated-inputs (list go-golang-org-x-text
+                             go-golang-org-x-crypto
+                             go-github-com-emersion-go-message
+                             go-github-com-protonmail-go-crypto))
+    (home-page "https://github.com/emersion/go-pgpmail")
+    (synopsis "PGP mail encryption for Go")
+    (description
+     "The pgpmail package implements PGP encryption for e-mail messages.")
+    (license license:expat)))
+
 (define-public go-github-com-gatherstars-com-jwz
   (package
     (name "go-github-com-gatherstars-com-jwz")