* gnu/packages/python.scm (python-httpbin): New variable. --- gnu/packages/python.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8f9a335..c4e2a58 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -525,6 +525,52 @@ Python interface around SSH networking concepts.") (define-public python2-paramiko (package-with-python2 python-paramiko)) +(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 license:expat))) + +(define-public python2-httpbin + (package + (inherit (package-with-python2 + (strip-python2-variant python-httpbin))) + (inputs `(("python2-setuptools" ,python2-setuptools) + ("python2-decorator" ,python2-decorator) + ("python2-flask" ,python2-flask) + ("python2-gevent" ,python2-gevent) + ("python2-greenlet" ,python2-greenlet) + ("python2-gunicorn" ,python2-gunicorn) + ("python2-itsdangerous" ,python2-itsdangerous) + ("python2-jinja2" ,python2-jinja2) + ("python2-markupsafe" ,python2-markupsafe) + ("python2-six" ,python2-six) + ("python2-werkzeug" ,python2-werkzeug))))) (define-public python-httplib2 (package -- 2.10.0