From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7BxX-00045Y-E7 for guix-patches@gnu.org; Sat, 06 May 2017 22:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7BxT-0005Ax-Dr for guix-patches@gnu.org; Sat, 06 May 2017 22:30:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7BxT-0005AG-Ao for guix-patches@gnu.org; Sat, 06 May 2017 22:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7BxT-00031P-00 for guix-patches@gnu.org; Sat, 06 May 2017 22:30:03 -0400 Subject: bug#26524: [PATCH 2/4] gnu: Add python-httpbin Resent-Message-ID: From: Muriithi Frederick Muriuki Date: Sun, 7 May 2017 05:29:41 +0300 Message-Id: <20170507022943.20427-2-fredmanglis@gmail.com> In-Reply-To: <20170507022943.20427-1-fredmanglis@gmail.com> References: <20170507022943.20427-1-fredmanglis@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26524@debbugs.gnu.org * gnu/packages/web.scm (python-httpbin): New variable. --- gnu/packages/web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 9c2074d..b975b18 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4491,3 +4491,29 @@ functions of Tidy.") Features include the ability to stop SQL injections, XSS and CSRF attacks and exploit attempts.") (license l:gpl2))) + +(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) + (propagated-inputs + `(("python-decorator" ,python-decorator) + ("python-flask" ,python-flask) + ("python-itsdangerous" ,python-itsdangerous) + ("python-markupsafe" ,python-markupsafe) + ("python-six" ,python-six))) + (home-page "https://github.com/Runscope/httpbin") + (synopsis "HTTP request and response service") + (description "Testing an HTTP Library can become difficult sometimes. +@code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the +response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are +JSON-encoded.") + (license l:isc))) -- 2.10.2