me
/
guix
Archived
1
0
Fork 0

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.
master
Maxim Cournoyer 2022-04-19 16:17:49 -04:00
parent d45727f4e4
commit abca2b8047
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 4 additions and 0 deletions

View File

@ -30677,6 +30677,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'"))