This commit is contained in:
Daniel Ziltener 2024-03-12 23:20:27 +01:00
parent 0e90531603
commit 2d88a18d6f
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -13,6 +13,7 @@
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages bash) #:use-module (gnu packages bash)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages cmake)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages curl) #:use-module (gnu packages curl)
#:use-module (gnu packages databases) #:use-module (gnu packages databases)
@ -63,9 +64,32 @@
(sha256 (sha256
(base32 (base32
"1wswxrn4givsm917mfl39rafgadimf1sldpbjdjws00g1wx36hf0")))) "1wswxrn4givsm917mfl39rafgadimf1sldpbjdjws00g1wx36hf0"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:tests? #f)) (list #:tests? #f))
(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)))
(define-public python-ruamel-yaml-clib
(package
(name "python-ruamel-yaml-clib")
(version "0.2.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ruamel.yaml.clib" version))
(sha256
(base32
"15wlbw7wys3nana0xgip8mgjlpcr1f2qwrvivf04377a5ddgs20z"))))
(build-system pyproject-build-system)
(arguments
(list #:tests? #f))
(inputs
(list python-ruamel-base
python-ruamel-yaml))
(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 "AWS CLI provides a unified command line interface to the
@ -74,25 +98,50 @@ Amazon Web Services (AWS) API.")
(define-public python-ruamel-yaml (define-public python-ruamel-yaml
(package (package
(name "python-ruamel-yaml") (name "python-ruamel-yaml")
(version "0.17.32") (version "0.17.32")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "ruamel.yaml" version)) (uri (pypi-uri "ruamel.yaml" version))
(sha256 (sha256
(base32 (base32
"1hpg033cyw7h3kv44qxbb443phikdnx5qalp892y250rfrir14zc")))) "1hpg033cyw7h3kv44qxbb443phikdnx5qalp892y250rfrir14zc"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:tests? #f)) (list #:tests? #f
(inputs #:phases
(list python-ruamel-base)) #~(modify-phases %standard-phases
(home-page "https://aws.amazon.com/cli/") (delete 'sanity-check))))
(synopsis "Command line client for AWS") (inputs
(description "AWS CLI provides a unified command line interface to the (list python-ruamel-base))
(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.") Amazon Web Services (AWS) API.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public python-awscrt
(package
(name "python-awscrt")
(version "0.20.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "awscrt" version))
(sha256
(base32
"1li94chzfaqam3vkwaw33j2c861g5lg9vkybnnx72crq6m5yk75z"))))
(build-system pyproject-build-system)
(arguments
(list #:tests? #f))
(inputs
(list cmake))
(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)))
(define-public awscli-2 (define-public awscli-2
(package (package
@ -111,29 +160,41 @@ Amazon Web Services (AWS) API.")
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
;; FIXME: The 'pypi' release does not contain tests. ;; FIXME: The 'pypi' release does not contain tests.
'(#:tests? #f '(#:phases
#:phases (modify-phases
(modify-phases %standard-phases %standard-phases
(add-after 'unpack 'fix-reference-to-groff (add-after 'unpack 'relax-requirements
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "awscli/help.py" (substitute* "pyproject.toml"
(("if not self._exists_on_path\\('groff'\\):") "") (("cryptography>=3.3.2,<40.0.2") "cryptography>=3.3.2")
(("raise ExecutableNotFoundError\\('groff'\\)") "") (("flit_core>=3.7.1,<3.8.1") "flit_core>=3.7.1")
(("cmdline = \\['groff'") (("awscrt>=0.19.18,<=0.19.19") "awscrt>=0.16.4")
(string-append "cmdline = ['" (("ruamel.yaml>=0.15.0,<=0.17.21") "ruamel.yaml>=0.15.0")
(search-input-file inputs "bin/groff") (("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")
"'"))))))))
(inputs (inputs
(list groff (list groff
python-awscrt
python-wrapper python-wrapper
python-colorama-for-awscli python-colorama-for-awscli
python-botocore python-botocore
python-distro
python-flit-core python-flit-core
python-importlib-resources python-importlib-resources
python-executor python-executor
python-s3transfer python-s3transfer
python-docutils-0.15 python-docutils-0.15
python-pyyaml python-prompt-toolkit
python-ruamel-yaml
python-ruamel-yaml-clib
python-rsa)) python-rsa))
(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")