[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
- [PATCH 00/13] Add beets and its dependencies, Leo Famulari, 2016/03/03
- [PATCH 03/13] gnu: Add python-musicbrainzngs., Leo Famulari, 2016/03/03
- [PATCH 02/13] gnu: Add python-munkres., Leo Famulari, 2016/03/03
- [PATCH 06/13] gnu: Add python-pylast., Leo Famulari, 2016/03/03
- [PATCH 05/13] gnu: Add python-pyechonest., Leo Famulari, 2016/03/03
- [PATCH 07/13] gnu: Add python-responses.,
Leo Famulari <=
- [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/03
- Re: [PATCH 12/13] gnu: Add python-rarfile., Ricardo Wurmus, 2016/03/04
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/04
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/13
- Re: [PATCH 12/13] gnu: Add python-rarfile., Ricardo Wurmus, 2016/03/17
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/17
- Re: [PATCH 12/13] gnu: Add python-rarfile., Efraim Flashner, 2016/03/18
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/18
[PATCH 09/13] gnu: Add python-mpd2., Leo Famulari, 2016/03/03
[PATCH 08/13] gnu: Add python2-pathlib., Leo Famulari, 2016/03/03