mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: awscli: Update to 1.35.20.
* gnu/packages/python-web.scm (awscli): Update to 1.35.20. Use G-expressions. [source]: Swap to git checkout as it contains tests. [build-system]: Swap to pyproject-build-system. [phases]: Delete use-recent-pyyaml phase; add set-invorenment phase. [inputs]: Remove groff, python-colorama-for-awscli, and python-pyyaml-5; add groff-minimal, python-colorama, and python-pyyaml. [native-inputs]: Add python-pytest, python-pytest-xdist, python-setuptools, and python-wheel. Change-Id: Ib7542a783fe65bb93d9f4cbfb89241190813fde4
This commit is contained in:
parent
c66639559a
commit
71d8ea41dd
1 changed files with 49 additions and 32 deletions
|
@ -4136,47 +4136,64 @@ supports url redirection and retries, and also gzip and deflate decoding.")
|
||||||
(package
|
(package
|
||||||
;; Note: updating awscli typically requires updating botocore as well.
|
;; Note: updating awscli typically requires updating botocore as well.
|
||||||
(name "awscli")
|
(name "awscli")
|
||||||
(version "1.22.90")
|
(version "1.35.20")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch) ; no tests in PyPI release
|
||||||
(uri (pypi-uri name version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/aws/aws-cli")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1hj1hj374hdwb8wq2xw20ywjyrv37s65nfsjzs6k9wa0f629alkf"))))
|
||||||
"0ky4ax4xh7s8w1l0hwc7w9ii8afvh9nib3kz09qhiqdinxzrlv54"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
;; FIXME: The 'pypi' release does not contain tests.
|
(list
|
||||||
'(#:tests? #f
|
#:test-flags
|
||||||
#:phases
|
#~(list "--numprocesses" "auto"
|
||||||
(modify-phases %standard-phases
|
;; Tests require networking.
|
||||||
(add-after 'unpack 'use-recent-pyyaml
|
"--ignore" "tests/integration"
|
||||||
(lambda _
|
;; It strugles to set PYTHONPATH.
|
||||||
(substitute* '("awscli.egg-info/requires.txt"
|
;;
|
||||||
"setup.cfg"
|
;; AssertionError: 'argument operation: Invalid choice, valid
|
||||||
"setup.py")
|
;; choices are:' not found in '
|
||||||
(("<5.5") "<=6"))))
|
"-k" (string-append "not test_subscribe_to_shard_removed"
|
||||||
(add-after 'unpack 'fix-reference-to-groff
|
" and not test_start_conversation_removed"))
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
#:phases
|
||||||
(substitute* "awscli/help.py"
|
#~(modify-phases %standard-phases
|
||||||
(("if not self._exists_on_path\\('groff'\\):") "")
|
(add-after 'unpack 'fix-reference-to-groff
|
||||||
(("raise ExecutableNotFoundError\\('groff'\\)") "")
|
(lambda _
|
||||||
(("cmdline = \\['groff'")
|
;; XXX: Consider to use wrap-program instead, it tries to parse
|
||||||
(string-append "cmdline = ['"
|
;; the PATH.
|
||||||
(search-input-file inputs "bin/groff")
|
(substitute* "awscli/help.py"
|
||||||
"'"))))))))
|
(("if self._exists_on_path\\('groff'\\):") "if 'groff':")
|
||||||
|
(("raise ExecutableNotFoundError\\('groff'\\)") "")
|
||||||
|
(("cmdline = \\['groff'")
|
||||||
|
(format #f "cmdline = ['~a/bin/groff'"
|
||||||
|
#$(this-package-input "groff-minimal"))))))
|
||||||
|
(add-before 'check 'set-environment
|
||||||
|
(lambda _
|
||||||
|
;; PermissionError: [Errno 13] Permission denied:
|
||||||
|
;; '/homeless-shelter'
|
||||||
|
(setenv "HOME" "/tmp"))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-pytest
|
||||||
|
python-pytest-xdist
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
(inputs
|
(inputs
|
||||||
(list groff
|
(list groff-minimal
|
||||||
python-colorama-for-awscli
|
|
||||||
python-botocore
|
python-botocore
|
||||||
python-s3transfer
|
python-colorama
|
||||||
python-docutils-0.15
|
python-docutils-0.15
|
||||||
python-pyyaml-5
|
python-pyyaml
|
||||||
python-rsa))
|
python-rsa
|
||||||
|
python-s3transfer))
|
||||||
(home-page "https://aws.amazon.com/cli/")
|
(home-page "https://aws.amazon.com/cli/")
|
||||||
(synopsis "Command line client for AWS")
|
(synopsis "Command line client for AWS")
|
||||||
(description "AWS CLI provides a unified command line interface to the
|
(description
|
||||||
Amazon Web Services (AWS) API.")
|
"AWS CLI provides a unified command line interface to the Amazon Web
|
||||||
|
Services (AWS) API.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public awscli-2
|
(define-public awscli-2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue