From unknown Fri Sep 19 23:36:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27400 <27400@debbugs.gnu.org> To: bug#27400 <27400@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add python-apache-libcloud. Reply-To: bug#27400 <27400@debbugs.gnu.org> Date: Sat, 20 Sep 2025 06:36:10 +0000 retitle 27400 [PATCH] gnu: Add python-apache-libcloud. reassign 27400 guix-patches submitter 27400 Danny Milosavljevic severity 27400 normal tag 27400 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 16 18:11:12 2017 Received: (at submit) by debbugs.gnu.org; 16 Jun 2017 22:11:12 +0000 Received: from localhost ([127.0.0.1]:51791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLzSR-0007I0-To for submit@debbugs.gnu.org; Fri, 16 Jun 2017 18:11:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLzSQ-0007Hl-1c for submit@debbugs.gnu.org; Fri, 16 Jun 2017 18:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLzSJ-0007Sg-Qw for submit@debbugs.gnu.org; Fri, 16 Jun 2017 18:11:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLzSJ-0007SO-Nf for submit@debbugs.gnu.org; Fri, 16 Jun 2017 18:11:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLzSI-0003Ml-I0 for guix-patches@gnu.org; Fri, 16 Jun 2017 18:11:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLzSD-0007Pf-JA for guix-patches@gnu.org; Fri, 16 Jun 2017 18:11:02 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:35698) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLzSD-0007PT-Bp for guix-patches@gnu.org; Fri, 16 Jun 2017 18:10:57 -0400 Received: from dayas.3.home (77.118.165.147.wireless.dyn.drei.com [77.118.165.147]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 32B251CA020D; Fri, 16 Jun 2017 23:31:03 +0200 (CEST) From: Danny Milosavljevic To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-apache-libcloud. Date: Fri, 16 Jun 2017 23:21:56 +0200 Message-Id: <20170616212156.24333-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.12.1 Tags: patch X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit Cc: Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) * gnu/packages/python.scm (python-apache-libcloud, python2-apache-libcloud): New variables. --- gnu/packages/python.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 352a5f333..5807f046e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -98,6 +98,7 @@ #:use-module (gnu packages readline) #:use-module (gnu packages sdl) #:use-module (gnu packages shells) + #:use-module (gnu packages ssh) #:use-module (gnu packages statistics) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) @@ -15324,3 +15325,61 @@ validating Swagger API specifications.") (define-public python2-swagger-spec-validator (package-with-python2 python-swagger-spec-validator)) + +(define-public python-apache-libcloud + (package + (name "python-apache-libcloud") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "apache-libcloud" version)) + (sha256 + (base32 + "1a71z02ckcxld72k4qgmdnkjan52c4wczncs3p2mp5yafh7dsan7")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-ssh + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "libcloud/compute/ssh.py" + (("'ssh'") (string-append "'" (assoc-ref inputs "openssh") + "'"))) + #t)) + (add-after 'unpack 'patch-tests + (lambda _ + (substitute* "./libcloud/test/test_file_fixtures.py" + ;; See . + (("def _ascii") "def _raw_data(self, method, url, body, headers): + return (httplib.OK, + \"1234abcd\", + {\"test\": \"value\"}, + httplib.responses[httplib.OK]) + def _ascii")) + (substitute* "libcloud/test/compute/test_ssh_client.py" + (("class ShellOutSSHClientTests") + "@unittest.skip(\"Guix container doesn't have ssh service\") +class ShellOutSSHClientTests") + ;; See . + (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'") + (("'.xF0', '.x90', '.x8D', '.x88'") + "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'")) + #t))))) + (inputs + `(("openssh" ,openssh))) + (propagated-inputs + `(("python-paramiko" ,python-paramiko) + ("python-requests" ,python-requests))) + (native-inputs + `(("python-lockfile" ,python-lockfile) + ("python-mock" ,python-mock) + ("python-requests-mock" ,python-requests-mock))) + (home-page "https://libcloud.apache.org/") + (synopsis "Unified Cloud API") + (description "@code{libcloud} is a Python library for interacting with +many of the popular cloud service providers using a unified API.") + (license license:asl2.0))) + +(define-public python2-apache-libcloud + (package-with-python2 python-apache-libcloud)) From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 09:37:32 2017 Received: (at 27400) by debbugs.gnu.org; 17 Jun 2017 13:37:32 +0000 Received: from localhost ([127.0.0.1]:52247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMDuu-0002nj-3z for submit@debbugs.gnu.org; Sat, 17 Jun 2017 09:37:32 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMDur-0002nb-DB for 27400@debbugs.gnu.org; Sat, 17 Jun 2017 09:37:30 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2E3E4208BC; Sat, 17 Jun 2017 09:37:29 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 17 Jun 2017 09:37:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=FFO5LnaIV/Yo+zvgUzdPQikNJNEl7kmo1tM+BaXvG /o=; b=FpikFJjNPlhb69Dx5iEOKepwZ9/GsNxqxG6pX5XNORL8ica2MRiiRUvLg taun7cBodF0jrUXyJL42mx6poboRshvC1igVSLUVUuZsbNN3AciDzXszIeNM40oX wyZXQDvITQPpi6/qFIID7g290CqlK/JODwBAVHdEspNc7QKLykJ1Q2ignToVSqM0 HPdeVVlwRoGkMsY9zAMLeLmMdLoler6qtmo3vVmCws4EkDiUT7Z2saPQcfeCT970 klfch6Xr4e3TPQSxKUJP228Ijc6wZROhUZSg1QwJz+i/aLrZ/T/zsziL9bswmx+m Hzp/7DxQaEdlCl+W4yYEMnjOEnlMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=FFO5LnaIV/Yo+zvgUz dPQikNJNEl7kmo1tM+BaXvG/o=; b=KgSZqsUOXw8gj7tyePCw9/KZB5HbFL/v4A ppGT2cPvHATLZ5Bqfhlws5B/6xq++zRovbZK+MiT0N//ou7VnH+BitJ0WYGzsNsA WnV93ufEZx8dqAVHMn0WpyTPVBHzgEmwCIJXSu9GxYPBMQ5y5GUYZZ5facI/2STF BqAs/oFcvSzNqfnAam4WlaFe2FvKbK/IcIMslKNGLp962r1xL/d+VAp4LICekLcj vGzwefcitHmzNLPQXG1UkGhYzQp16CmPYagF8tdTTle4QTEND5hJeMa6tohaBRoc dquQNdR7L3RXF5aJUv7oBv9YAKXdN9R2d720J8MaomrK0g5VC8rw== X-ME-Sender: X-Sasl-enc: bvZBQuMGDzj/erk1dFv0A1cRMRMlgi46Ii5c9BXrjg0T 1497706648 Received: from localhost (unknown [188.113.81.93]) by mail.messagingengine.com (Postfix) with ESMTPA id A336F24772; Sat, 17 Jun 2017 09:37:28 -0400 (EDT) From: Marius Bakke To: Danny Milosavljevic , 27400@debbugs.gnu.org Subject: Re: [bug#27400] [PATCH] gnu: Add python-apache-libcloud. In-Reply-To: <20170616212156.24333-1-dannym@scratchpost.org> References: <20170616212156.24333-1-dannym@scratchpost.org> User-Agent: Notmuch/0.24.2 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) Date: Sat, 17 Jun 2017 15:37:27 +0200 Message-ID: <87zid6g2g8.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Danny Milosavljevic writes: > * gnu/packages/python.scm (python-apache-libcloud, python2-apache-libcloud): > New variables. [...] > + (modify-phases %standard-phases > + (add-after 'unpack 'patch-ssh > + (lambda* (#:key inputs #:allow-other-keys) > + (substitute* "libcloud/compute/ssh.py" > + (("'ssh'") (string-append "'" (assoc-ref inputs "openssh") > + "'"))) Should this not be (assoc-ref inputs "openssh") "/bin/ssh"? > + #t)) > + (add-after 'unpack 'patch-tests > + (lambda _ > + (substitute* "./libcloud/test/test_file_fixtures.py" > + ;; See . > + (("def _ascii") "def _raw_data(self, method, url, body, headers): > + return (httplib.OK, > + \"1234abcd\", > + {\"test\": \"value\"}, > + httplib.responses[httplib.OK]) > + def _ascii")) > + (substitute* "libcloud/test/compute/test_ssh_client.py" > + (("class ShellOutSSHClientTests") > + "@unittest.skip(\"Guix container doesn't have ssh service\") > +class ShellOutSSHClientTests") > + ;; See . > + (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'") > + (("'.xF0', '.x90', '.x8D', '.x88'") > + "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'")) Odd that these substitutions are necessary. Could it be something with our Python build? Or locale in the build environment? LGTM, anyway. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAllFMJcACgkQoqBt8qM6 VPrEtAf9HHT+/p3gF2kuJZ0EuW8FkuYCzBXdB43TJYHEw5PFEn/pOGzRjpqVWZol dwQFNDsAZIjdHhn8mFudu8dOJPm9fm+Xt1Q0FDmyuHR4+v4yv3ax2/Tgc/6E5rDf x01IshNcEIikWn36AwV3pqJ3cJztpC26ApTdeqV1/LMklZSJA5DXdfd43nc2181s w9GOTIqP3PFOYgDIV1i9XZtvYJ3mSLmUHhacXGjfhRI+zHACTTy6OKCb47CMfBSo y2eGwDzJoxjSu9ivK9DeAjdO0MLoug2b1zeqAFQSd4tg9NDODUCWGlJTIhZVVrwa B1n4f8tN1v6Ywrd0ulioYBSA5hqKqQ== =4BT4 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 14:46:09 2017 Received: (at 27400) by debbugs.gnu.org; 17 Jun 2017 18:46:09 +0000 Received: from localhost ([127.0.0.1]:53669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMIjZ-0005Ni-5J for submit@debbugs.gnu.org; Sat, 17 Jun 2017 14:46:09 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:49742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMIjY-0005Na-6K for 27400@debbugs.gnu.org; Sat, 17 Jun 2017 14:46:08 -0400 Received: from localhost (80-108-65-216.cable.dynamic.surfer.at [80.108.65.216]) by dd1012.kasserver.com (Postfix) with ESMTPSA id C76381CA020D; Sat, 17 Jun 2017 20:46:06 +0200 (CEST) Date: Sat, 17 Jun 2017 20:46:06 +0200 From: Danny Milosavljevic To: Marius Bakke Subject: Re: [bug#27400] [PATCH] gnu: Add python-apache-libcloud. Message-ID: <20170617204606.4f8cdfc7@scratchpost.org> In-Reply-To: <87zid6g2g8.fsf@fastmail.com> References: <20170616212156.24333-1-dannym@scratchpost.org> <87zid6g2g8.fsf@fastmail.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27400 Cc: 27400@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi Marius, On Sat, 17 Jun 2017 15:37:27 +0200 Marius Bakke wrote: > Should this not be (assoc-ref inputs "openssh") "/bin/ssh"? Indeed. Thanks! > > + ;; See . > > + (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'") > > + (("'.xF0', '.x90', '.x8D', '.x88'") > > + "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'")) No idea. It works fine with Python 2 - and previous versions of apache-libcloud were Python 2 only. Let's see what they say. Pushed as 7ea498e5cd55c056492a778203414ce977350142. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 14:46:38 2017 Received: (at control) by debbugs.gnu.org; 17 Jun 2017 18:46:38 +0000 Received: from localhost ([127.0.0.1]:53675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMIk2-0005Od-Ka for submit@debbugs.gnu.org; Sat, 17 Jun 2017 14:46:38 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:49776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMIk1-0005OW-Cs for control@debbugs.gnu.org; Sat, 17 Jun 2017 14:46:37 -0400 Received: from localhost (80-108-65-216.cable.dynamic.surfer.at [80.108.65.216]) by dd1012.kasserver.com (Postfix) with ESMTPSA id A47411CA020D for ; Sat, 17 Jun 2017 20:46:36 +0200 (CEST) Date: Sat, 17 Jun 2017 20:46:35 +0200 From: Danny Milosavljevic To: Message-ID: <20170617204635.7da516de@scratchpost.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 27400 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 27400 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 TVD_SPACE_RATIO No description available. close 27400 From unknown Fri Sep 19 23:36:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Jul 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator