rekahsoft-gnu: python-xyz: Update awscliv2 and fix shell completions
This commit is contained in:
parent
ca474a0db4
commit
93d76dee41
@ -2222,7 +2222,7 @@ and have a maximum lifetime built-in.")
|
||||
(package
|
||||
(inherit awscli)
|
||||
(name "awscliv2")
|
||||
(version "2.2.33")
|
||||
(version "2.2.37")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
@ -2231,7 +2231,7 @@ and have a maximum lifetime built-in.")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0gswyik6z65pa5gi5ar762x8wv6hr1i898l4vf4f7k0rpi60zb4n"))))
|
||||
(base32 "1z9gwf4rgn52h4l0ik258raswyh7i06f4k3d5616jcm6c3mh9jc9"))))
|
||||
(native-inputs
|
||||
`(("python-distro" ,python-distro-1.5)))
|
||||
(propagated-inputs
|
||||
@ -2248,8 +2248,34 @@ and have a maximum lifetime built-in.")
|
||||
("python-colorama" ,python-colorama-0.4.3)
|
||||
("python-botocore" ,python-botocore-2.0.0dev141)))
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(delete 'fix-reference-to-groff))
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'fix-reference-to-groff)
|
||||
(add-after 'install 'generate-completions
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(python-version (python-version (assoc-ref inputs "python")))
|
||||
(data (string-append out "/lib/python" python-version "/site-packages/awscli/data"))
|
||||
(bash-completion (string-append out "/share/bash-completion/completions"))
|
||||
(zsh-site-functions (string-append out "/share/zsh/site-functions")))
|
||||
(mkdir-p data)
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
|
||||
(setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
|
||||
(invoke "python" "scripts/gen-ac-index" "--index-location" (string-append data "/ac.index"))
|
||||
|
||||
(mkdir-p bash-completion)
|
||||
(call-with-output-file
|
||||
(string-append bash-completion "/aws")
|
||||
(lambda (port)
|
||||
(format port
|
||||
(string-join
|
||||
(list "complete" "-C" (string-append out "/bin/aws_completer") "aws")))))
|
||||
|
||||
(mkdir-p zsh-site-functions)
|
||||
(rename-file (string-append out "/bin/aws_zsh_completer.sh")
|
||||
(string-append zsh-site-functions "/_aws"))
|
||||
#t))))
|
||||
;; TODO: fixme
|
||||
#:tests? #f))
|
||||
(synopsis "Command line client for AWS v2")
|
||||
|
Loading…
Reference in New Issue
Block a user