From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 07/13] gnu: Add python-responses. Date: Thu, 3 Mar 2016 20:26:33 -0500 Message-ID: <4b64c535accca0851101ce7c46d0cc7d273c447f.1457054741.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abeVy-0008PJ-KW for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abeVw-0002X3-Q3 for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:46 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abeVw-0002Wo-MX for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:44 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id A0B2EC0001A for ; Thu, 3 Mar 2016 20:26:43 -0500 (EST) In-Reply-To: In-Reply-To: References: 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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