rekahsoft-gnu: Update awscliv2
* rekahsoft-gnu/packages/python-xyz.scm (awscliv2): Update awscliv2 2.2.37 -> 2.4.7 (awscliv2): Move propagated-inputs to native-inputs, as python applications should not propagate libraries (awscliv2): Remove explicit setting of PYTHONPATH, as this is no longer required as of recent versions of guix (python-distro-1.5): Now required for awscliv2 (python-ruamel.yaml-0.15): Required for awscliv2 (python-cryptography-3.3.2): Required for awscliv2 (python-s3transfer-0.4): Removed as this hack is no longer required now that I understand python applications should not propagate their library inputs (python-botocore-2.0.0dev155): Update botocore for awscliv2 update
This commit is contained in:
parent
f73b8d68ec
commit
3077ff775d
|
@ -218,7 +218,7 @@ bindings for Python 3.")
|
||||||
(package
|
(package
|
||||||
(inherit awscli)
|
(inherit awscli)
|
||||||
(name "awscliv2")
|
(name "awscliv2")
|
||||||
(version "2.2.37")
|
(version "2.4.7")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -227,26 +227,40 @@ bindings for Python 3.")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1z9gwf4rgn52h4l0ik258raswyh7i06f4k3d5616jcm6c3mh9jc9"))))
|
(base32 "1b7f8vwd90wpbzb7i4a4mdficzqaa41jfa2k6mm3i4cas48fklkk"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-distro" ,python-distro-1.5)))
|
`(("python-distro" ,python-distro-1.5)
|
||||||
|
("python-docutils" ,python-docutils-0.15)
|
||||||
|
("python-s3transfer" ,python-s3transfer)
|
||||||
|
("python-awscrt" ,python-awscrt)
|
||||||
|
("python-prompt-toolkit" ,python-prompt-toolkit-2)
|
||||||
|
("python-ruamel.yaml" ,python-ruamel.yaml-0.15)
|
||||||
|
("python-cryptography" ,python-cryptography-3.3.2)
|
||||||
|
("python-botocore" ,python-botocore-2.0.0dev155)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(,@(fold alist-delete
|
`(,@(fold alist-delete
|
||||||
(package-propagated-inputs awscli)
|
(package-propagated-inputs awscli)
|
||||||
'("python-s3transfer" "python-colorama"
|
'("python-botocore"))))
|
||||||
"python-botocore" "python-docutils"))
|
|
||||||
("python-awscrt" ,python-awscrt-0.11-awscliv2)
|
|
||||||
("python-prompt-toolkit" ,python-prompt-toolkit-2)
|
|
||||||
("python-ruamel.yaml" ,python-ruamel.yaml)
|
|
||||||
("python-s3transfer" ,python-s3transfer-0.4-awscliv2)
|
|
||||||
("python-cryptography" ,python-cryptography)
|
|
||||||
("python-docutils" ,python-docutils-0.15)
|
|
||||||
("python-colorama" ,python-colorama-0.4.3)
|
|
||||||
("python-botocore" ,python-botocore-2.0.0dev145)))
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'fix-reference-to-groff)
|
(add-before 'build 'removed-vendored
|
||||||
|
(lambda* _
|
||||||
|
(for-each delete-file-recursively
|
||||||
|
'("awscli/botocore" "awscli/s3transfer"))
|
||||||
|
(symlink (string-append
|
||||||
|
(assoc-ref %build-inputs "python-botocore")
|
||||||
|
"/lib/python"
|
||||||
|
(python-version (assoc-ref %build-inputs "python"))
|
||||||
|
"/site-packages/botocore")
|
||||||
|
"awscli/botocore")
|
||||||
|
(symlink (string-append
|
||||||
|
(assoc-ref %build-inputs "python-s3transfer")
|
||||||
|
"/lib/python"
|
||||||
|
(python-version (assoc-ref %build-inputs "python"))
|
||||||
|
"/site-packages/s3transfer")
|
||||||
|
"awscli/s3transfer")
|
||||||
|
#t))
|
||||||
(add-after 'install 'generate-completions
|
(add-after 'install 'generate-completions
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
@ -260,7 +274,6 @@ bindings for Python 3.")
|
||||||
(mkdir-p data)
|
(mkdir-p data)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
|
||||||
(setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
|
|
||||||
(invoke "python" "scripts/gen-ac-index"
|
(invoke "python" "scripts/gen-ac-index"
|
||||||
"--index-location" (string-append data "/ac.index"))
|
"--index-location" (string-append data "/ac.index"))
|
||||||
|
|
||||||
|
@ -268,10 +281,11 @@ bindings for Python 3.")
|
||||||
(call-with-output-file
|
(call-with-output-file
|
||||||
(string-append bash-completion "/aws")
|
(string-append bash-completion "/aws")
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(format port
|
(format
|
||||||
(string-join
|
port
|
||||||
(list
|
(string-join
|
||||||
"complete" "-C" (string-append out "/bin/aws_completer") "aws")))))
|
(list
|
||||||
|
"complete" "-C" (string-append out "/bin/aws_completer") "aws")))))
|
||||||
|
|
||||||
(mkdir-p zsh-site-functions)
|
(mkdir-p zsh-site-functions)
|
||||||
(rename-file (string-append out "/bin/aws_zsh_completer.sh")
|
(rename-file (string-append out "/bin/aws_zsh_completer.sh")
|
||||||
|
@ -283,56 +297,6 @@ bindings for Python 3.")
|
||||||
(description "AWS CLI v2 provides a unified command line interface to the
|
(description "AWS CLI v2 provides a unified command line interface to the
|
||||||
Amazon Web Services (AWS) API.")))
|
Amazon Web Services (AWS) API.")))
|
||||||
|
|
||||||
(define-public python-awscrt
|
|
||||||
(package
|
|
||||||
(name "python-awscrt")
|
|
||||||
(version "0.12.1")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (pypi-uri "awscrt" version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1z6hyazw5zz0xjx7wjfxi7i2blg4535a1zq70c356d46kqhbyhc0"))))
|
|
||||||
(build-system python-build-system)
|
|
||||||
(native-inputs
|
|
||||||
`(("cmake" ,cmake)))
|
|
||||||
(propagated-inputs
|
|
||||||
`(("python-boto3" ,python-boto3)))
|
|
||||||
(home-page
|
|
||||||
"https://github.com/awslabs/aws-crt-python")
|
|
||||||
(synopsis
|
|
||||||
"Common runtime for AWS Python projects")
|
|
||||||
(description
|
|
||||||
"Common runtime for AWS Python projects")
|
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
(define-public python-awscrt-0.11
|
|
||||||
(package
|
|
||||||
(inherit python-awscrt)
|
|
||||||
(version "0.11.24")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (pypi-uri "awscrt" version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1zv2043mxzmbb449n3rwirz1zl22npsyyw05ps2h1gq4ljy6iamq"))))))
|
|
||||||
|
|
||||||
(define-public python-awscrt-0.11-awscliv2
|
|
||||||
(package
|
|
||||||
(inherit python-awscrt-0.11)
|
|
||||||
(version "0.11.24-awscliv2")
|
|
||||||
;; FIXME: Remove python-s3transfer from propagated inputs because awscliv2
|
|
||||||
;; requires >=0.4.2,<0.5.0 but boto3 requires <0.4.0
|
|
||||||
(native-inputs
|
|
||||||
`(,@(package-native-inputs python-awscrt-0.11)
|
|
||||||
("python-s3transfer" ,python-s3transfer)
|
|
||||||
("python-boto3" ,python-boto3)))
|
|
||||||
(propagated-inputs
|
|
||||||
`(,@(alist-delete "python-boto3"
|
|
||||||
(package-propagated-inputs python-awscrt-0.11))))))
|
|
||||||
|
|
||||||
(define-public python-distro-1.5
|
(define-public python-distro-1.5
|
||||||
(package
|
(package
|
||||||
(inherit python-distro)
|
(inherit python-distro)
|
||||||
|
@ -345,61 +309,63 @@ Amazon Web Services (AWS) API.")))
|
||||||
(base32
|
(base32
|
||||||
"14nz51cqlnxmgfqqilxyvjwwa5xfivdvlm0d0b1qzgcgwdm7an0f"))))))
|
"14nz51cqlnxmgfqqilxyvjwwa5xfivdvlm0d0b1qzgcgwdm7an0f"))))))
|
||||||
|
|
||||||
(define-public python-s3transfer-0.4
|
(define-public python-ruamel.yaml-0.15
|
||||||
(package
|
(package
|
||||||
(inherit python-s3transfer)
|
(inherit python-ruamel.yaml)
|
||||||
(version "0.4.2")
|
(name "python-ruamel.yaml")
|
||||||
(source (origin
|
(version "0.15.100")
|
||||||
(method url-fetch)
|
|
||||||
(uri (pypi-uri "s3transfer" version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1cp169vz9rvng7dwbn33fgdbl3b014zpsdqsnfxxw7jm2r5jy0nb"))))))
|
|
||||||
|
|
||||||
(define-public python-s3transfer-0.4-awscliv2
|
|
||||||
(package
|
|
||||||
(inherit python-s3transfer-0.4)
|
|
||||||
(version "0.4.2-awscliv2")
|
|
||||||
(propagated-inputs
|
|
||||||
`(,@(alist-delete "python-botocore"
|
|
||||||
(package-propagated-inputs python-s3transfer-0.4))
|
|
||||||
("python-botocore" ,python-botocore-2.0.0dev145)
|
|
||||||
("python-awscrt" ,python-awscrt-0.11-awscliv2)))))
|
|
||||||
|
|
||||||
(define-public python-docutils-0.15
|
|
||||||
(package
|
|
||||||
(inherit python-docutils)
|
|
||||||
(version "0.15.2")
|
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "docutils" version))
|
(uri (pypi-uri "ruamel.yaml" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"168s5v7bff5ar9jspr6wn823q1sbn0jhnbp9clk41nl8j09fmbm2"))))
|
"1r5j9n2jdq48z0k4bdia1f7krn8f2x3y49i9ba9iks2rg83g6hlf"))))))
|
||||||
(arguments
|
|
||||||
`(,@(package-arguments python-docutils)
|
|
||||||
;; TODO: fixme
|
|
||||||
#:tests? #f))))
|
|
||||||
|
|
||||||
(define-public python-colorama-0.4.3
|
(define-public python-cryptography-3.3.2
|
||||||
(package
|
(package
|
||||||
(inherit python-colorama)
|
(inherit python-cryptography)
|
||||||
(version "0.4.3")
|
(name "python-cryptography")
|
||||||
|
(version "3.3.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "colorama" version))
|
(uri (pypi-uri "cryptography" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9"))))))
|
(base32
|
||||||
|
"1vcvw4lkw1spiq322pm1256kail8nck6bbgpdxx3pqa905wd6q2s"))))))
|
||||||
|
|
||||||
(define-public python-botocore-2.0.0dev145
|
(define-public python-awscrt
|
||||||
(let ((commit "981292a6fe9826c0675ae61c025dd93039e30aa6")
|
(package
|
||||||
(revision "1"))
|
(name "python-awscrt")
|
||||||
|
(version "0.12.4")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "awscrt" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1cmfkcv2zzirxsb989vx1hvna9nv24pghcvypl0zaxsjphv97mka"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(native-inputs
|
||||||
|
`(("cmake" ,cmake)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-boto3" ,python-boto3)))
|
||||||
|
(home-page
|
||||||
|
"https://github.com/awslabs/aws-crt-python")
|
||||||
|
(synopsis
|
||||||
|
"Common runtime for AWS Python projects")
|
||||||
|
(description
|
||||||
|
"Common runtime for AWS Python projects")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public python-botocore-2.0.0dev155
|
||||||
|
(let ((commit "7083e5c204e139dc41f646e0ad85286b5e7c0c23")
|
||||||
|
(revision "2"))
|
||||||
(package
|
(package
|
||||||
(inherit python-botocore)
|
(inherit python-botocore)
|
||||||
(name "python-botocore")
|
(name "python-botocore")
|
||||||
(version "2.0.0dev145")
|
(version "2.0.0dev155")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -409,7 +375,10 @@ Amazon Web Services (AWS) API.")))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"161blyxa7cg3k7f9hk6bs8hdmchg6gd1wjn1gnw21sxpch5b3wzi")))))))
|
"0lr98h80fgs6kplv52y92pcf1ba4041zq26wdfsfjkg84py9q83a"))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-awscrt" ,python-awscrt)
|
||||||
|
,@(package-propagated-inputs python-awscrt))))))
|
||||||
|
|
||||||
(define-public python-htmlark
|
(define-public python-htmlark
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue