gnu: python-webassets: Patch for Python 3.9.

* gnu/packages/python-web.scm (python-webassets)[arguments]: Add
substitution.
This commit is contained in:
Marius Bakke 2021-12-01 00:57:54 +01:00
parent 9f5b9d18d8
commit 846bd3d083
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -3762,8 +3762,12 @@ (define-public python-webassets
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-before 'check 'disable-some-tests
(add-before 'check 'adjust-tests
(lambda _
;; Fix for Python 3.9 compatibility.
(substitute* "tests/test_script.py"
(("self\\.t\\.isAlive")
"self.t.is_alive"))
;; This test requires 'postcss' and 'babel' which are
;; not yet available in Guix.
(delete-file "tests/test_filters.py")))