From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muriithi Frederick Muriuki Subject: [PATCH 17/20] gnu: Add python-httpretty Date: Fri, 14 Apr 2017 13:13:17 +0300 Message-ID: <20170414101320.11755-17-fredmanglis@gmail.com> References: <20170414101320.11755-1-fredmanglis@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyyEW-0001Fa-Re for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyyEU-0005kJ-KZ for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:40 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:33301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyyEU-0005jn-Em for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:38 -0400 Received: by mail-wm0-x242.google.com with SMTP id o81so17141168wmb.0 for ; Fri, 14 Apr 2017 03:13:38 -0700 (PDT) In-Reply-To: <20170414101320.11755-1-fredmanglis@gmail.com> 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: pjotr2017@thebird.nl * gnu/packages/python.scm (python-httpretty): New variable. --- gnu/packages/python.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f2355bd..71ea495 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14385,3 +14385,47 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot (define-public python2-mock-1.3.0 (package-with-python2 python-mock-1.3.0)) + +(define-public python-httpretty + (package + (name "python-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" ,python-sphinx-rtd-theme-0.1.9) + ("python-sphinx" ,python-sphinx-1.3.3) + ("python-coverage" ,python-coverage-4.0.3) + ("python-tornado" ,python-tornado) + ("python-urllib3" ,python-urllib3-1.12) + ("python-sure" ,python-sure) + ("python-steadymark" ,python-steadymark) + ("python-requests" ,python-requests-2.8.1) + ("python-rednose" ,python-rednose-0.4.3) + ("python-nose-randomly" ,python-nose-randomly) + ("python-mock" ,python-mock-1.3.0) + ("python-misaka" ,python-misaka) + ("python-pytest-httpbin" ,python-pytest-httpbin))) + (arguments + `(;; One of ipdb's dependency keeps failing with a response + ;; of 410, "Gone" + ;; The dependency seems to have a name "texlive-texmf-2016" + ;; and seems to be one of texlive's dependencies + ;; As such, the tests for this will fail due to the missing + ;; dependency ("python-ipdb" ,python-ipdb) + #:tests? #f)) + (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 license:expat))) + +(define-public python2-httpretty + (package-with-python2 python-httpretty)) -- 2.10.2