From fd836c52504c472d3480bd54a6446a8977c82cb3 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Fri, 14 Apr 2017 12:31:00 +0300 Subject: [PATCH 17/20] gnu: Add python-httpretty * 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 address@hidden") + (license license:expat))) + +(define-public python2-httpretty + (package-with-python2 python-httpretty)) -- 2.10.2