From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3hrz-0002aQ-OV for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3hru-0002w5-N0 for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:17 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45862) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3hru-0002vO-Ew for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3hrt-0003s4-AT for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:13 -0400 Subject: [bug#37234] [PATCH 20/21] gnu: Add python-moto. Resent-Message-ID: From: Marius Bakke Date: Fri, 30 Aug 2019 16:25:38 +0200 Message-Id: <20190830142539.28376-20-mbakke@fastmail.com> In-Reply-To: <20190830142539.28376-1-mbakke@fastmail.com> References: <20190830142539.28376-1-mbakke@fastmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37234@debbugs.gnu.org * gnu/packages/python-xyz.scm (python-moto): New public variable. --- gnu/packages/python-xyz.scm | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7056ea3d48..e908fcf3d5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -94,6 +94,7 @@ #:use-module (gnu packages crypto) #:use-module (gnu packages databases) #:use-module (gnu packages dbm) + #:use-module (gnu packages docker) #:use-module (gnu packages file) #:use-module (gnu packages fontutils) #:use-module (gnu packages gcc) @@ -8666,6 +8667,61 @@ text.") (define-public python2-colorama (package-with-python2 python-colorama)) +(define-public python-moto + (package + (name "python-moto") + (version "1.3.13") + (source (origin + (method url-fetch) + (uri (pypi-uri "moto" version)) + (sha256 + (base32 + "0rhbjvqi1khp80gfnl3x632kwlpq3k7m8f13nidznixdpa78vm4m")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'check 'adjust-setuppy + (lambda _ + ;; Remove artificial dependency on Zopes DateTime (see + ;; ). + (substitute* "setup.py" + (("\"datetime\",") + "")) + #t))))) + (native-inputs + `(("python-flask" ,python-flask) + ("python-freezegun" ,python-freezegun) + ("python-nose" ,python-nose) + ("python-sure" ,python-sure))) + (propagated-inputs + `(("python-aws-xray-sdk" ,python-aws-xray-sdk) + ("python-boto" ,python-boto) + ("python-boto3" ,python-boto3) + ("python-botocore" ,python-botocore) + ("python-cfn-lint" ,python-cfn-lint) + ("python-cryptography" ,python-cryptography) + ("python-dateutil" ,python-dateutil) + ("python-docker" ,python-docker-py) + ("python-idna" ,python-idna) + ("python-jinja2" ,python-jinja2) + ("python-jose" ,python-jose) + ("python-jsondiff" ,python-jsondiff) + ("python-mock" ,python-mock) + ("python-pytz" ,python-pytz) + ("python-pyyaml" ,python-pyyaml-next) + ("python-requests" ,python-requests) + ("python-responses" ,python-responses) + ("python-six" ,python-six) + ("python-sshpubkeys" ,python-sshpubkeys) + ("python-werkzeug" ,python-werkzeug) + ("python-xmltodict" ,python-xmltodict))) + (home-page "https://github.com/spulec/moto") + (synopsis "Mock out the boto library") + (description + "@code{moto} is a library that allows your Python tests to easily mock +out the @code{boto} library.") + (license license:asl2.0))) + (define-public python-rsa (package (name "python-rsa") -- 2.22.1