From 21cd4c704e3c75e89b5760157d61060787dcb71f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 13 Apr 2022 09:25:13 +0200 Subject: 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. --- gnu/packages/python-web.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ab6b11c3c6..da83646f95 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2880,6 +2880,12 @@ supports url redirection and retries, and also gzip and deflate decoding.") '(#:tests? #f #: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 (lambda _ (substitute* "awscli/help.py" @@ -2892,7 +2898,7 @@ supports url redirection and retries, and also gzip and deflate decoding.") python-botocore-for-awscli python-s3transfer python-docutils-0.15 - python-pyyaml-for-awscli + python-pyyaml python-rsa)) (native-inputs (list groff)) -- cgit v1.2.3