[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/21: gnu: Add awscli-2.
From: |
guix-commits |
Subject: |
14/21: gnu: Add awscli-2. |
Date: |
Mon, 18 Nov 2024 18:00:27 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 391de92713ce8847ce9003291944f8b7ff5dc22d
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Nov 14 11:45:38 2024 +0000
gnu: Add awscli-2.
* gnu/packages/python-web.scm (awscli-2): Rename to...
(awscliv2): ...this new variable.
(awscli-2): New variable.
Change-Id: Id5c356ae0e6af53167d4acde7934f88c2f527a00
---
gnu/packages/python-web.scm | 71 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d3ef984a07..bc18c282c6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4285,9 +4285,78 @@ opt.override_default_trust_store_from_path(None,
os.getenv('SSL_CERT_FILE')) if
Services (AWS) API.")
(license license:asl2.0)))
+(define-public awscli-2
+ (package
+ (inherit awscli)
+ (name "awscli")
+ (version "2.20.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aws/aws-cli")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0hyr9gmcfk7nzkgs0v6wgkh8k15dyhknqzfymbc9a9sa2dblc40q"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'ignore-deprecations
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("\"error::") "\"ignore::"))))
+ (add-after 'unpack 'remove-pep517
+ (lambda _
+ (rename-file "backends/pep517.py" "backends/dummypep517.py")
+ (substitute* "pyproject.toml"
+ (("pep517") "dummypep517"))
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) ":"
+ (getcwd) "/backends:"
+ (getenv "GUIX_PYTHONPATH")))))
+ (add-after 'unpack 'fix-reference-to-groff
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "awscli/help.py"
+ (("if self._exists_on_path\\('groff'\\):") "if True:")
+ (("cmdline = \\['groff'")
+ (string-append "cmdline = ['"
+ (search-input-file inputs "bin/groff")
+ "'")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (substitute* "scripts/ci/run-tests"
+ (("--numprocesses=auto --dist=loadfile --maxprocesses=4")
""))
+ ;; For an unknown reason pytest receives SIGTERM and no tests
+ ;; are run..
+ #;
+ (invoke "python" "scripts/ci/run-tests")))))))
+ (inputs
+ (list groff
+ python-awscrt-for-awscli
+ python-colorama
+ python-botocore
+ python-cryptography
+ python-dateutil
+ python-docutils
+ python-jmespath
+ python-prompt-toolkit
+ python-ruamel.yaml-0.16
+ python-ruamel.yaml.clib
+ python-urllib3))
+ (native-inputs
+ (list python-distro
+ python-flit
+ python-pytest
+ python-wheel))))
+
;; This is not an official release of awscli version 2, so it should not be
;; named awscli.
-(define-public awscli-2
+(define-public awscliv2
(package
(inherit awscli)
(name "awscliv2")
- branch master updated (1affd2b5aa -> 4473f8ae90), guix-commits, 2024/11/18
- 01/21: gnu: python-botocore: Update to 1.35.54., guix-commits, 2024/11/18
- 05/21: gnu: Remove python-boto., guix-commits, 2024/11/18
- 03/21: gnu: python-boto3: Update to 1.35.54., guix-commits, 2024/11/18
- 14/21: gnu: Add awscli-2.,
guix-commits <=
- 08/21: gnu: python-boto3: Update to 1.35.59., guix-commits, 2024/11/18
- 10/21: gnu: awscli-2: Add missing inputs., guix-commits, 2024/11/18
- 06/21: gnu: Remove python-colorama-for-awscli., guix-commits, 2024/11/18
- 13/21: gnu: Add python-awscrt-for-awscli., guix-commits, 2024/11/18
- 11/21: gnu: awscli-2: Update to 2.3.1., guix-commits, 2024/11/18
- 18/21: gnu: packages/astronomy: Adjust inputs., guix-commits, 2024/11/18
- 04/21: gnu: awscli: Update to 1.35.20., guix-commits, 2024/11/18
- 07/21: gnu: python-botocore: Update to 1.35.59., guix-commits, 2024/11/18
- 16/21: gnu: yt-dlp: Update to 2024.10.22., guix-commits, 2024/11/18
- 21/21: gnu: Add python-svgelements., guix-commits, 2024/11/18