Subject: [PATCH 1/1] gnu: Add emacs-restclient.
From: James Richardson <[email-masked]>
To: [email-masked]
Cc: James Richardson <[email-masked]>
Date: Wed, 24 May 2017 01:26:44 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/emacs.scm (emacs-restclient): New variable.
---
 gnu/packages/emacs.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index a59a4ca69..176df7105 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2017 Kei Kebreau <[email-masked]>
 ;;; Copyright © 2017 George Clemmer <[email-masked]>
 ;;; Copyright © 2017 Feng Shu <[email-masked]>
+;;; Copyright © 2017 James Richardson <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4836,3 +4837,30 @@ Emacs.")
 using ERT.  It assumes a certain test structure setup and can therefore make
 running tests easier.")
       (license license:gpl3+))))
+
+(define-public emacs-restclient
+  (let ((commit "07a3888bb36d0e29608142ebe743b4362b800f40")
+        (revision "1"))                 ;Guix package revision,
+                                        ;upstream doesn't have official releases
+    (package
+      (name "emacs-restclient")
+      (version (string-append revision "."
+                              (string-take commit 7)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/pashky/restclient.el.git")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "00lmjhb5im1kgrp54yipf1h9pshxzgjlg71yf2rq5n973gvb0w0q"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("emacs-helm" ,emacs-helm)))
+      (home-page "https://github.com/pashky/restclient.el")
+      (synopsis "Explore and test HTTP REST webservices")
+      (description
+       "A tool that allows testing and exploration of HTTP REST webservices from
+within Emacs.  Restclient runs queries from a plan-text query sheet, displays
+results pretty-printed in XML or JSON with @code{restclient-mode}")
+      (license license:public-domain))))
-- 
2.13.0