guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: awscli: Use PyYAML 6.


From: guix-commits
Subject: 01/02: gnu: awscli: Use PyYAML 6.
Date: Wed, 13 Apr 2022 03:27:48 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 21cd4c704e3c75e89b5760157d61060787dcb71f
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Apr 13 09:25:13 2022 +0200

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]