diff mbox series

[bug#48684,1/3] : gnu: Add r-webutils

Message ID CAO+9K5ogJ3_eZr2HP4JM9-TvTVYkjs=pUHuGLuvhjg1o3zaHFQ@mail.gmail.com
State Accepted
Headers show
Series [bug#48684,1/3] : gnu: Add r-webutils | expand

Commit Message

Sharlatan Hellseher May 26, 2021, 8:55 p.m. UTC
-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
diff mbox series

Patch

From 22f09a7faf4295b76b57a8ff360697b3c3127cfb Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Wed, 26 May 2021 21:41:30 +0100
Subject: [PATCH 1/3] gnu: Add r-webutils

* gnu/packages/cran.scm (r-webutils): New variable.
---
 gnu/packages/cran.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 19aa2b407b..f7c841ad52 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -34,6 +34,7 @@ 
 ;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
 ;;; Copyright © 2020 Aniket Patil <aniket112.patil@gmail.com>
 ;;; Copyright © 2021 Tim Howes <timhowes@lavabit.com>
+;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28997,3 +28998,26 @@  complex functions.")
     (description
       "The Gaussian hypergeometric function for complex numbers.")
     (license license:gpl2)))
+
+(define-public r-webutils
+  (package
+    (name "r-webutils")
+    (version "1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "webutils" version))
+       (sha256
+        (base32 "16a6ds0fnb6y8i1r9ba1hf1ydb53am57s070b3hi5jmrs84b9qik"))))
+    (properties `((upstream-name . "webutils")))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-curl" ,r-curl)
+       ("r-jsonlite" ,r-jsonlite)))
+    (home-page "https://github.com/jeroen/webutils")
+    (synopsis "Utility Functions for Developing Web Applications")
+    (description
+     "Parses http request data in application/json, multipart/form-data, or
+application/x-www-form-urlencoded format.  Includes example of hosting and
+parsing html form data in R using either @code{httpuv} or @code{Rhttpd}.")
+    (license license:expat)))
-- 
2.31.1