gnu: awscli: Use PyYAML 6.

This should be fine because all uses of yaml.load supply the now mandatory
loader argument.

* gnu/packages/python-web.scm (awscli)[arguments]: Add phase
'use-recent-pyyaml.
[propagated-inputs]: Replace python-pyyaml-for-awscli with python-pyyaml.
This commit is contained in:
Ricardo Wurmus 2022-04-13 09:25:13 +02:00
parent 7bd5394bf8
commit 21cd4c704e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -2880,6 +2880,12 @@ (define-public awscli
'(#:tests? #f '(#:tests? #f
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'use-recent-pyyaml
(lambda _
(substitute* '("awscli.egg-info/requires.txt"
"setup.cfg"
"setup.py")
(("<5.5") "<=6"))))
(add-after 'unpack 'fix-reference-to-groff (add-after 'unpack 'fix-reference-to-groff
(lambda _ (lambda _
(substitute* "awscli/help.py" (substitute* "awscli/help.py"
@ -2892,7 +2898,7 @@ (define-public awscli
python-botocore-for-awscli python-botocore-for-awscli
python-s3transfer python-s3transfer
python-docutils-0.15 python-docutils-0.15
python-pyyaml-for-awscli python-pyyaml
python-rsa)) python-rsa))
(native-inputs (native-inputs
(list groff)) (list groff))