unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#30486] [PATCH] gnu: Add python-boto3 and python2-boto3.
@ 2018-02-16 15:37 Thompson, David
  2018-02-16 19:34 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Thompson, David @ 2018-02-16 15:37 UTC (permalink / raw)
  To: 30486

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

Small patch that adds the AWS SDK for Python which came in handy for
me while testing a Lambda function (in the AWS sense) on my local
machine yesterday.

- Dave

[-- Attachment #2: 0001-gnu-Add-python-boto3-and-python2-boto3.patch --]
[-- Type: text/x-patch, Size: 1639 bytes --]

From a328be2daccc7778f05c86a06b3b7db237473a44 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Fri, 16 Feb 2018 10:35:04 -0500
Subject: [PATCH] gnu: Add python-boto3 and python2-boto3.

* gnu/packages/python-web.scm (python-boto3, python2-boto3): New variables.
---
 gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 3cad440b9..d295cbf1d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2442,3 +2442,32 @@ layouts.")
 
 (define-public python2-pastescript
   (package-with-python2 python-pastescript))
+
+(define-public python-boto3
+  (package
+    (name "python-boto3")
+    (version "1.5.29")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "boto3" version))
+       (sha256
+        (base32
+         "1f2sy0qjgs0sh0sxqfpf2ykr0y43cgrilp8y6zmzy9wbnkfp6cx8"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-botocore" ,python-botocore)
+       ("python-jmespath" ,python-jmespath)
+       ("python-s3transfer" ,python-s3transfer)))
+    (home-page "https://github.com/boto/boto3")
+    (synopsis "The AWS SDK for Python")
+    (description "Boto3 is the official Amazon Web Services SDK for Python.")
+    (license license:asl2.0)))
+
+(define-public python2-boto3
+  (let ((base (package-with-python2 python-boto3)))
+    (package
+      (inherit base)
+      (propagated-inputs
+       `(("python2-futures" ,python2-futures)
+         ,@(package-propagated-inputs base))))))
-- 
2.16.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#30486] [PATCH] gnu: Add python-boto3 and python2-boto3.
  2018-02-16 15:37 [bug#30486] [PATCH] gnu: Add python-boto3 and python2-boto3 Thompson, David
@ 2018-02-16 19:34 ` Leo Famulari
  2020-12-11  6:44   ` Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2018-02-16 19:34 UTC (permalink / raw)
  To: Thompson, David; +Cc: 30486

[-- Attachment #1: Type: text/plain, Size: 956 bytes --]

On Fri, Feb 16, 2018 at 10:37:20AM -0500, Thompson, David wrote:
> Small patch that adds the AWS SDK for Python which came in handy for
> me while testing a Lambda function (in the AWS sense) on my local
> machine yesterday.
> 
> - Dave

> From a328be2daccc7778f05c86a06b3b7db237473a44 Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Fri, 16 Feb 2018 10:35:04 -0500
> Subject: [PATCH] gnu: Add python-boto3 and python2-boto3.
> 
> * gnu/packages/python-web.scm (python-boto3, python2-boto3): New variables.

Thanks!

> +(define-public python2-boto3
> +  (let ((base (package-with-python2 python-boto3)))
> +    (package
> +      (inherit base)
> +      (propagated-inputs
> +       `(("python2-futures" ,python2-futures)
> +         ,@(package-propagated-inputs base))))))

I think this needs to use the python2-variant system. The package
definition of python2-parse-type has a simple example.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#30486] [PATCH] gnu: Add python-boto3 and python2-boto3.
  2018-02-16 19:34 ` Leo Famulari
@ 2020-12-11  6:44   ` Arun Isaac
  2020-12-12  1:25     ` bug#30486: " Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2020-12-11  6:44 UTC (permalink / raw)
  To: Leo Famulari, Thompson, David; +Cc: 30486

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]


Hi,

python-boto3 has been added in 65579957d524804ea27dec2bed4382aa00a607e2.

--8<---------------cut here---------------start------------->8---
commit 65579957d524804ea27dec2bed4382aa00a607e2
Author: Kristian Trandem <kristian@devup.no>
Date:   Fri Aug 16 02:35:39 2019 +0200

    gnu: Add python-boto3.
    
    gnu/packages/python-xyz.scm (python-boto3): New variable.
    
    Signed-off-by: Marius Bakke <mbakke@fastmail.com>
--8<---------------cut here---------------end--------------->8---

I guess we don't need python2-boto3 since python2 has reached end of
life. So, can we close this bug report?

Regards,
Arun

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#30486: [PATCH] gnu: Add python-boto3 and python2-boto3.
  2020-12-11  6:44   ` Arun Isaac
@ 2020-12-12  1:25     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2020-12-12  1:25 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 30486-done

On Fri, Dec 11, 2020 at 12:14:21PM +0530, Arun Isaac wrote:
> 
> Hi,
> 
> python-boto3 has been added in 65579957d524804ea27dec2bed4382aa00a607e2.
> 
> --8<---------------cut here---------------start------------->8---
> commit 65579957d524804ea27dec2bed4382aa00a607e2
> Author: Kristian Trandem <kristian@devup.no>
> Date:   Fri Aug 16 02:35:39 2019 +0200
> 
>     gnu: Add python-boto3.
>     
>     gnu/packages/python-xyz.scm (python-boto3): New variable.
>     
>     Signed-off-by: Marius Bakke <mbakke@fastmail.com>
> --8<---------------cut here---------------end--------------->8---
> 
> I guess we don't need python2-boto3 since python2 has reached end of
> life. So, can we close this bug report?

Done!




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-12  1:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 15:37 [bug#30486] [PATCH] gnu: Add python-boto3 and python2-boto3 Thompson, David
2018-02-16 19:34 ` Leo Famulari
2020-12-11  6:44   ` Arun Isaac
2020-12-12  1:25     ` bug#30486: " Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).