guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/9] gnu: Add python-httpbin.


From: contact . ng0
Subject: [PATCH 3/9] gnu: Add python-httpbin.
Date: Sat, 4 Feb 2017 16:35:00 +0000

From: ng0 <address@hidden>

* gnu/packages/web.scm (python-httpbin): New variable.
---
 gnu/packages/web.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 1803f58e9..244672c9d 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4044,3 +4044,37 @@ used to start services with both privileged and 
non-privileged port numbers.")
 
 (define-public python2-gunicorn
   (package-with-python2 python-gunicorn))
+
+(define-public python-httpbin
+  (package
+    (name "python-httpbin")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "httpbin" version))
+       (sha256
+        (base32
+         "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-decorator" ,python-decorator)
+       ("python-flask" ,python-flask)
+       ("python-gevent" ,python-gevent)
+       ("python-greenlet" ,python-greenlet)
+       ("python-gunicorn" ,python-gunicorn)
+       ("python-itsdangerous" ,python-itsdangerous)
+       ("python-jinja2" ,python-jinja2)
+       ("python-markupsafe" ,python-markupsafe)
+       ("python-six" ,python-six)
+       ("python-werkzeug" ,python-werkzeug)))
+    (home-page "https://httpbin.org/";)
+    (synopsis "HTTP Request and Response Service")
+    (description
+     "@code{httpbin} covers all kinds of HTTP scenarios for testing
+HTTP libraries.  Additional endpoints are being considered.
+All endpoint responses are JSON-encoded, it can be run as a WSGI App.")
+    (license l:expat)))
+
+(define-public python2-httpbin
+  (package-with-python2 python-httpbin))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]