This commit is contained in:
Daniel Ziltener 2024-03-13 11:03:22 +01:00
parent 57a6b951a7
commit 4e11610f68
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -327,66 +327,3 @@ Amazon Web Services (AWS) API.")
Amazon Web Services (AWS) API.")
(license license:asl2.0)))
(define-public awscli-2
(package
;; Note: updating awscli typically requires updating botocore as well.
(name "awscli")
(version "2.15.28")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aws/aws-cli")
(commit version)))
(sha256
(base32
"0v9ndxih1i1s1ygp6c3p5krf7j2fxdy6fam36w7pijsk76wp0xdy"))))
(build-system pyproject-build-system)
(arguments
;; FIXME: The 'pypi' release does not contain tests.
'(#:phases
(modify-phases
%standard-phases
(add-after 'unpack 'relax-requirements
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "pyproject.toml"
(("cryptography>=3.3.2,<40.0.2") "cryptography>=3.3.2")
(("flit_core>=3.7.1,<3.8.1") "flit_core>=3.7.1")
(("awscrt>=0.19.18,<=0.19.19") "awscrt>=0.16.4")
(("ruamel.yaml>=0.15.0,<=0.17.21") "ruamel.yaml>=0.15.0")
(("ruamel.yaml.clib>=0.2.0,<=0.2.7") "ruamel.yaml.clib>=0.2.0"))))
(add-after 'unpack 'fix-reference-to-groff
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "awscli/help.py"
(("if not self._exists_on_path\\('groff'\\):") "")
(("raise ExecutableNotFoundError\\('groff'\\)") "")
(("cmdline = \\['groff'")
(string-append "cmdline = ['"
(search-input-file inputs "bin/groff")
"'"))))))))
(native-inputs
(list python-pypa-build))
(inputs
(list groff
python-wrapper
python-awscrt
python-botocore
python-colorama
python-cryptography
python-dateutil
python-distro
python-docutils
python-jmespath
python-flit-core
python-importlib-resources
python-executor
python-s3transfer
python-prompt-toolkit
python-pyyaml
python-ruamel-yaml
python-ruamel-yaml-clib))
(home-page "https://aws.amazon.com/cli/")
(synopsis "Command line client for AWS")
(description "AWS CLI provides a unified command line interface to the
Amazon Web Services (AWS) API.")
(license license:asl2.0)))