From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLXHa-0006cG-Iv for guix-patches@gnu.org; Thu, 15 Jun 2017 12:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLXHX-0007D5-BK for guix-patches@gnu.org; Thu, 15 Jun 2017 12:06:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLXHX-0007D1-75 for guix-patches@gnu.org; Thu, 15 Jun 2017 12:06:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLXHW-0001On-W8 for guix-patches@gnu.org; Thu, 15 Jun 2017 12:06:03 -0400 Subject: [bug#27384] [PATCH] gnu: Add python2-httpretty Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLXGm-0006F2-JR for guix-patches@gnu.org; Thu, 15 Jun 2017 12:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLXGj-0006yn-Rj for guix-patches@gnu.org; Thu, 15 Jun 2017 12:05:15 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:35199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLXGj-0006yU-LF for guix-patches@gnu.org; Thu, 15 Jun 2017 12:05:13 -0400 Received: by mail-wm0-x22e.google.com with SMTP id x70so3773807wme.0 for ; Thu, 15 Jun 2017 09:05:13 -0700 (PDT) Received: from localhost.localdomain (41-139-150-138.safaricombusiness.co.ke. [41.139.150.138]) by smtp.gmail.com with ESMTPSA id m187sm551269wmb.10.2017.06.15.09.05.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 09:05:11 -0700 (PDT) From: Muriithi Frederick Muriuki Date: Thu, 15 Jun 2017 19:05:26 +0300 Message-Id: <20170615160526.27324-2-fredmanglis@gmail.com> In-Reply-To: <20170615160526.27324-1-fredmanglis@gmail.com> References: <20170615160526.27324-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: 27384@debbugs.gnu.org * gnu/packages/web.scm (python2-httpretty): New variable. --- gnu/packages/web.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 5f27ef957..82c79a306 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4614,3 +4614,54 @@ allocations, it does not buffer data, it can be interrupted at anytime. Depending on your architecture, it only requires about 40 bytes of data per message stream (in a web server that is per connection).") (license l:expat))) + +(define-public python2-httpretty + (package + (name "python2-httpretty") + (version "0.8.14") + (source + (origin + (method url-fetch) + (uri (pypi-uri "httpretty" version)) + (sha256 + (base32 + "0vlp5qkyw3pxwwsg7xmdcfh1csvypvaz4m6abida8s4xmjxpdhc3")))) + (build-system python-build-system) + (native-inputs + `(("python-sphinx-rtd-theme" ,python2-sphinx-rtd-theme) + ("python-sphinx" ,python2-sphinx) + ("python-coverage" ,python2-coverage) + ("python-tornado" ,python2-tornado) + ("python-urllib3" ,python2-urllib3) + ("python-sure" ,python2-sure) + ("python-steadymark" ,python2-steadymark) + ("python-requests" ,python2-requests) + ("python-rednose" ,python2-rednose) + ("python-nose-randomly" ,python2-nose-randomly) + ("python-misaka" ,python2-misaka) + ("python-pytest-httpbin" ,python2-pytest-httpbin) + ("python-nose" ,python2-nose))) + (arguments + `(#:tests? #f + ;; Requires mock>=1.3.0 which requires a more up-to-date + ;; python-pbr. After updating these trying to build the + ;; package leads to failures in python-flake8 and other + ;; packages. The cascade of updates and failures this + ;; leads to, seems to not be worth having the test run. + #:python ,python-2 + #:phases + (modify-phases %standard-phases + (add-before 'build + 'patch-test-requirements + (lambda* (#:key inputs #:allow-other-keys) + ;; Update requirements from dependecy==version + ;; to dependency>=version + (substitute* "development.txt" + (("==") ">=")) + #t))))) + (home-page + "http://github.com/gabrielfalcao/httpretty") + (synopsis "HTTP client mock for Python") + (description "@code{httpretty} is a helper for faking web requests, inspired by Ruby's +@code{fakeweb}.") + (license l:expat))) -- 2.13.1