Thompson, David wrote 7 years ago
(address . guix-patches@gnu.org)
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.
---
gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Toggle diff (39 lines)
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