From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 3/9] gnu: Add python-httpbin. Date: Sat, 4 Feb 2017 16:35:00 +0000 Message-ID: <20170204163506.16758-4-contact.ng0@cryptolab.net> References: <20170204163506.16758-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca3JB-0005Ui-0f for guix-devel@gnu.org; Sat, 04 Feb 2017 11:35:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca3J7-0007vl-NG for guix-devel@gnu.org; Sat, 04 Feb 2017 11:35:28 -0500 Received: from aibo.runbox.com ([91.220.196.211]:49796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ca3J7-0007uc-FC for guix-devel@gnu.org; Sat, 04 Feb 2017 11:35:25 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ca3J6-0002fE-6J for guix-devel@gnu.org; Sat, 04 Feb 2017 17:35:24 +0100 In-Reply-To: <20170204163506.16758-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * 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