Subject: [PATCH 2/3] gnu: Add r-getpass

From: Todor Kondić <[email-masked]>
Date: Tue, 17 Mar 2020 13:08:25 +0000

* gnu/packages/statistics.scm (r-getpass) : New variable.
---
 gnu/packages/statistics.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 7e3b62c035..f161e6092e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -5844,3 +5844,28 @@ various statistical analysis programs such as R, Julia, and JAGS.")
     (description
      "Utilities for secure password hashing via the argon2 algorithm.")
     (license license:bsd-2)))
+
+(define-public r-getpass
+  (package
+    (name "r-getpass")
+    (version "0.2-2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "getPass" version))
+        (sha256
+          (base32
+            "03ydafhh0sk3rcnpr3paajyji64x2ddp6p814p9mvbmyrblcgzcc"))))
+    (properties `((upstream-name . "getPass")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-rstudioapi" ,r-rstudioapi)))
+    (home-page
+      "https://github.com/wrathematics/getPass")
+    (synopsis "Masked User Input")
+    (description
+      "This package provides a micro-package for reading \"passwords\", i.e.
+reading user input with masking, so that the input is not displayed as it is
+typed.  Currently, RStudio, the command line (every OS), and any platform
+where tcltk is present are supported.")
+    (license license:bsd-2)))
--
2.25.0