From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: [PATCH 4/4] gnu: Add python-requests-mock. Date: Tue, 15 Sep 2015 18:54:51 +0200 Message-ID: <8737yfaahw.fsf@openmailbox.org> References: <1442265803-26218-1-git-send-email-tipecaml@gmail.com> <1442265803-26218-5-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbtVk-0001w9-3C for guix-devel@gnu.org; Tue, 15 Sep 2015 12:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbtVg-000278-Sg for guix-devel@gnu.org; Tue, 15 Sep 2015 12:55:16 -0400 Received: from smtp8.openmailbox.org ([62.4.1.42]:55313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbtVg-00026t-Mg for guix-devel@gnu.org; Tue, 15 Sep 2015 12:55:12 -0400 In-Reply-To: <1442265803-26218-5-git-send-email-tipecaml@gmail.com> (Cyril Roelandt's message of "Mon, 14 Sep 2015 23:23:23 +0200") 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: Cyril Roelandt Cc: guix-devel@gnu.org Cyril Roelandt writes: > * gnu/packages/openstack.scm (python-requests-mock, > python2-requests-mock): New variables. > --- > gnu/packages/openstack.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm > index 1a2af79..2f3e883 100644 > --- a/gnu/packages/openstack.scm > +++ b/gnu/packages/openstack.scm > @@ -174,6 +174,37 @@ and sensible default behaviors into your setuptools run.") > (define-public python2-pbr > (package-with-python2 python-pbr)) > > +(define-public python-requests-mock > + (package > + (name "python-requests-mock") > + (version "0.6.0") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://pypi.python.org/packages/source/r/requests-mock/" > + "requests-mock-" version ".tar.gz")) > + (sha256 > + (base32 > + "0gmd88c224y53b1ai8cfsrcxm9kw3gdqzysclmnaqspg7zjhxwd1")))) (sha256 (base32 "...")) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-requests" ,python-requests) > + ("python-six" ,python-six))) > + (inputs > + `(("python-mock" ,python-mock) > + ("python-pbr" ,python-pbr) > + ("python-setuptools" ,python-setuptools))) > + (home-page "https://requests-mock.readthedocs.org/") > + (synopsis "Mock out responses from the requests package") > + (description > + "This module provides a building block to stub out the HTTP requests > +portions of your testing code.") > + (license asl2.0))) > + > +(define-public python2-requests-mock > + (package-with-python2 python-requests-mock)) > + > (define-public python-stevedore > (package > (name "python-stevedore") Otherwise LGTM. -- Mathieu Lirzin