Subject: [bug#55155] gnu: add r-piton

From: [email-masked]
Date: Wed, 27 Apr 2022 16:07:55 +0000

Dear Guix,

I would like the CRAN R package piton included in Guix. Please see the 
attached patch.

Kyle

From ac6ddfb2e3f2461955d1bc22de6d00bd8cda3fd0 Mon Sep 17 00:00:00 2001
From: Kyle Andrews <[email-masked]>
Date: Wed, 27 Apr 2022 08:33:38 -0400
Subject: [PATCH] gnu: add r-piton.

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 21cfca3102..fd49d87fbf 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -33123,3 +33123,25 @@ (define-public r-zoeppritz
 coefficients or scattering amplitudes, for seismological P and S-waves at an
 interface.")
     (license license:gpl2+)))
+
+(define-public r-piton
+  (package
+   (name "r-piton")
+   (version "1.0.0")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (cran-uri "piton" version))
+     (sha256
+      (base32 "1krf6zi238m275nxjlpyayv8y2drbgs2kg19dpkqm0lmlz5y5ar8"))))
+   (properties `((upstream-name . "piton")))
+   (build-system r-build-system)
+   (propagated-inputs (list r-rcpp))
+   (home-page "https://github.com/Ironholds/piton")
+   (synopsis "Parsing Expression Grammars in Rcpp")
+   (description
+    "This package provides a wrapper around the 'Parsing Expression Grammar Template
+Library', a C++11 library for generating Parsing Expression Grammars, that makes
+it accessible within Rcpp.  With this, developers can implement their own
+grammars and easily expose them in R packages.")
+   (license license:expat)))
-- 
2.35.1