From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57208) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3hrx-0002Xf-QD for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3hrt-0002or-1Y for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3hrs-0002hW-Qd for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3hrq-0003rR-Jy for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:10 -0400 Subject: [bug#37234] [PATCH 16/21] gnu: Add python-boto. Resent-Message-ID: From: Marius Bakke Date: Fri, 30 Aug 2019 16:25:34 +0200 Message-Id: <20190830142539.28376-16-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-boto): New public variable. --- gnu/packages/python-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 016fc4460c..7d4b0be494 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8752,6 +8752,48 @@ document.") (define-public python2-jmespath (package-with-python2 python-jmespath)) +(define-public python-boto + (package + (name "python-boto") + (version "2.49.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "boto" version)) + (sha256 + (base32 + "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'check 'prepare-tests + (lambda _ + ;; The SSH tests requires HOME with a .ssh directory. + (setenv "HOME" "/tmp") + (mkdir "/tmp/.ssh") + (call-with-output-file "/tmp/.ssh/authorized_keys" + (const #t)) + (call-with-output-file "/tmp/.ssh/known_hosts" + (const #t)) + #t)) + (replace 'check + (lambda _ + (invoke "python" "tests/test.py" "default")))))) + (native-inputs + `(("python-httpretty" ,python-httpretty) + ("python-mock" ,python-mock) + ("python-nose" ,python-nose))) + (propagated-inputs + `(("python-paramiko" ,python-paramiko) + ("python-requests" ,python-requests))) + (home-page "https://github.com/boto/boto") + (synopsis "Python interfaces for Amazon Web Services") + (description + "This package provides various facilities for interacting with Amazon +Web Services through Python. + +This software is unmaintained, and new projects should use @code{boto3} instead.") + (license license:expat))) + (define-public python-botocore (package (name "python-botocore") -- 2.22.1