Subject: [bug#58514] [PATCH] gnu: Add s3cmd.

From: Matthew James Kraai <[email-masked]>
Date: Fri, 14 Oct 2022 06:37:01 -0700

* gnu/packages/python-xyz.scm (python-s3cmd): New variable.
---
 gnu/packages/python-xyz.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7c647bd42f..3c5b247df8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -75,7 +75,7 @@
 ;;; Copyright © 2020 Josh Marshall <[email-masked]>
 ;;; Copyright © 2020 Lars-Dominik Braun <[email-masked]>
 ;;; Copyright © 2020 Alex ter Weele <[email-masked]>
-;;; Copyright © 2020 Matthew James Kraai <[email-masked]>
+;;; Copyright © 2020, 2022 Matthew James Kraai <[email-masked]>
 ;;; Copyright © 2020 Ryan Prior <[email-masked]>
 ;;; Copyright © 2020 Josh Holland <[email-masked]>
 ;;; Copyright © 2020 Yuval Kogman <[email-masked]>
@@ -16189,6 +16189,32 @@ (define-public python-magic
 the same purpose: to provide Python bindings for libmagic.")
     (license license:expat)))
 
+(define-public python-s3cmd
+  (package
+    (name "python-s3cmd")
+    (version "2.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/s3tools/s3cmd")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0rdgwwmmp8mdxc84bxq6k9a7v7z2qgc3df47djzs2b84gw81dglx"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     (list python-dateutil python-magic))
+    (home-page "https://s3tools.org/s3cmd")
+    (synopsis "Command line tool for S3-compatible storage services")
+    (description
+     "S3cmd is a command line tool for uploading, retrieving and managing data
+in storage services that are compatible with the Amazon Simple Storage
+Service (S3) protocol, including S3 itself.  It supports rsync-like backup,
+GnuPG encryption, and more.  It also supports management of Amazon's
+CloudFront content delivery network.")
+    (license license:gpl2+)))
+
 (define-public python-pkgconfig
   (package
     (name "python-pkgconfig")
-- 
2.38.0