guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 07/13] gnu: Add python-responses.


From: Leo Famulari
Subject: [PATCH 07/13] gnu: Add python-responses.
Date: Thu, 3 Mar 2016 20:26:33 -0500

* gnu/packages/python.scm (python-responses, python2-responses): New variables.
---
 gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b597952..e9969f4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8244,3 +8244,35 @@ presume or force a developer to use a particular tool or 
library.")
   (package (inherit (package-with-python2
                      (strip-python2-variant python-flask)))
     (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
+
+(define-public python-responses
+  (package
+    (name "python-responses")
+    (version "0.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "responses" version))
+              (sha256
+               (base32
+                "0fy497jcapmh83ifcj8fnsljfha7r1ldn775p1vvcqzpphavjpkc"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ; Test suite fails. Debian disables it.
+    (native-inputs
+     `(("python-mock" ,python-mock)))
+    (propagated-inputs
+     `(("python-requests" ,python-requests)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/getsentry/responses";)
+    (synopsis "A utility for mocking out the `requests` Python library.")
+    (description "A utility library for mocking out the `requests` Python
+library.")
+    (license asl2.0)
+    (properties `((python2-variant . ,(delay python2-responses))))))
+
+(define-public python2-responses
+  (let ((responses (package-with-python2
+                    (strip-python2-variant python-responses))))
+    (package (inherit responses)
+      (native-inputs `(("python2-setuptools" ,python2-setuptools)
+                       ,@(package-native-inputs responses))))))
-- 
2.6.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]