summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-02-15 04:19:28 -0500
committerLeo Famulari <leo@famulari.name>2016-03-18 14:27:16 -0400
commit0efde7d6d6370759f62cb38cc97bd9ee942cb23c (patch)
tree4676fb5037a6d373429b9f4ebbf5879678b4f11c /gnu/packages/python.scm
parent603d665bc3767f73d4b78f52fb20cf76e21689fc (diff)
gnu: Add python-responses.
* gnu/packages/python.scm (python-responses, python2-responses): New variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9144a37de41..b2b906704f9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8314,3 +8314,38 @@ Python.")
8314 (package (inherit cookies) 8314 (package (inherit cookies)
8315 (native-inputs `(("python2-setuptools" ,python2-setuptools) 8315 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8316 ,@(package-native-inputs cookies)))))) 8316 ,@(package-native-inputs cookies))))))
8317
8318(define-public python-responses
8319 (package
8320 (name "python-responses")
8321 (version "0.5.1")
8322 (source (origin
8323 (method url-fetch)
8324 (uri (pypi-uri "responses" version))
8325 (sha256
8326 (base32
8327 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
8328 (build-system python-build-system)
8329 (arguments
8330 `(;; Test suite is not distributed:
8331 ;; https://github.com/getsentry/responses/issues/38
8332 #:tests? #f))
8333 (native-inputs
8334 `(("python-cookies" ,python-cookies)
8335 ("python-mock" ,python-mock)))
8336 (propagated-inputs
8337 `(("python-requests" ,python-requests)
8338 ("python-six" ,python-six)))
8339 (home-page "https://github.com/getsentry/responses")
8340 (synopsis "Utility for mocking out the `requests` Python library")
8341 (description "A utility library for mocking out the `requests` Python
8342library.")
8343 (license asl2.0)
8344 (properties `((python2-variant . ,(delay python2-responses))))))
8345
8346(define-public python2-responses
8347 (let ((responses (package-with-python2
8348 (strip-python2-variant python-responses))))
8349 (package (inherit responses)
8350 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8351 ,@(package-native-inputs responses))))))