guix-commits
[Top][All Lists]
Advanced

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

185/242: gnu: python-multipart: Fix build with PyYAML 6.


From: guix-commits
Subject: 185/242: gnu: python-multipart: Fix build with PyYAML 6.
Date: Wed, 11 May 2022 18:03:25 -0400 (EDT)

apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.

commit 6ba01efd6c098c2c8a2384730ca5ef4b540b1560
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 19 16:17:49 2022 -0400

    gnu: python-multipart: Fix build with PyYAML 6.
    
    * gnu/packages/python-xyz.scm (python-multipart)
    [phases]{patch-test-suite}: Substitute yaml.load for yaml.safe_load.
---
 gnu/packages/python-xyz.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5cb45305b5..1ce59d0e6b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30665,6 +30665,10 @@ writing STL files.  It supports both the text and 
binary forms of STL.")
                   ;; There is a bug in the test_suit specification.
                   (add-after 'unpack 'patch-test-suite
                     (lambda _
+                      ;; Make compatible with PyYAML 6.
+                      (substitute* "multipart/tests/test_multipart.py"
+                        (("yaml.load")
+                         "yaml.safe_load"))
                       (substitute* "setup.py"
                         (("test_suite = 'multipart.tests.suite'")
                          "test_suite = 
'multipart.tests.test_multipart.suite'"))



reply via email to

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