guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#37234] [PATCH 08/21] gnu: Add python-boto3.


From: Marius Bakke
Subject: [bug#37234] [PATCH 08/21] gnu: Add python-boto3.
Date: Fri, 30 Aug 2019 16:25:26 +0200

From: Kristian Trandem <address@hidden>

gnu/packages/python-xyz.scm (python-boto3): New variable.

Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f0f99781b2..2fc2712395 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8763,6 +8763,41 @@ interface to the Amazon Web Services (AWS) API.")
 (define-public python2-botocore
   (package-with-python2 python-botocore))
 
+(define-public python-boto3
+  (package
+    (name "python-boto3")
+    (version "1.9.209")
+    (home-page "https://github.com/boto/boto3";)
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference (url home-page) (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "08dy2sh36lg2zg0kk8hagxj2id97agqa9mpq4i2arvqlhi89xm5y"))))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+        (add-after 'unpack 'delete-network-tests
+           ;; Deleting integration tests because they are trying to connect to 
AWS.
+          (lambda _
+            (delete-file-recursively "tests/integration")
+            #t)))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-mock" ,python-mock)))
+    (propagated-inputs
+     `(("python-botocore" ,python-botocore)
+       ("python-jmespath" ,python-jmespath)
+       ("python-s3transfer" ,python-s3transfer)))
+    (synopsis "AWS SDK for Python")
+    (description
+     "Boto3 is a @dfn{software development kit} (SDK) for @dfn{Amazon Web
+Services} (AWS), which allows Python developers to write software that makes
+use of services like Amazon S3 and Amazon EC2.")
+    (license license:asl2.0)))
+
 (define-public python-xdo
   (package
     (name "python-xdo")
-- 
2.22.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]