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.
This commit is contained in:
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

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