Subject: [bug#55379] [PATCH 01/14] gnu: Add r-gpg.

From: kyle <[email-masked]>
Date: Thu, 12 May 2022 02:10:21 +0000

From: Kyle Andrews <[email-masked]>

---
 gnu/packages/cran.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 5c05f20ea7..f69a7dd605 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -103,6 +103,7 @@ (define-module (gnu packages cran)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages statistics)
+  #:use-module (gnu packages gnupg)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages tls)
@@ -33255,3 +33256,29 @@ (define-public r-zoeppritz
 coefficients or scattering amplitudes, for seismological P and S-waves at an
 interface.")
     (license license:gpl2+)))
+
+(define r-gpg
+  (package
+   (name "r-gpg")
+   (version "1.2.2")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (cran-uri "gpg" version))
+     (sha256
+      (base32
+       "1qc7w4d6frp0j4yk0q7slkj1mps80bv78lixcpw1shgx48rp41kh"))))
+   (properties `((upstream-name . "gpg")))
+   (build-system r-build-system)
+   (propagated-inputs
+    `(("r-askpass" ,r-askpass) ("r-curl" ,r-curl)))
+   (inputs
+    `(("gpgme" ,gpgme) ("gnupg" ,gnupg)))
+   (native-inputs
+    `(("pkg-config" ,pkg-config) ("r-knitr" ,r-knitr)))
+   (home-page
+    "https://jeroen.cran.dev/gpg/https://github.com/jeroen/gpg")
+   (synopsis "GNU Privacy Guard for R")
+   (description
+    "Bindings to GnuPG for working with OpenGPG (RFC4880) cryptographic methods.  Includes utilities for public key encryption, creating and verifying digital signatures, and managing your local keyring.  Note that some functionality depends on the version of GnuPG that is installed on the system.  On Windows this package can be used together with 'GPG4Win' which provides a GUI for managing keys and entering passphrases.")
+   (license license:expat)))
-- 
2.36.0