guix-commits
[Top][All Lists]
Advanced

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

14/24: gnu: python-webassets: Patch for Python 3.9.


From: guix-commits
Subject: 14/24: gnu: python-webassets: Patch for Python 3.9.
Date: Sun, 5 Dec 2021 08:16:26 -0500 (EST)

mbakke pushed a commit to branch core-updates-frozen
in repository guix.

commit 846bd3d083eaf5e243367245daeaef0d0a0b65ce
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Dec 1 00:57:54 2021 +0100

    gnu: python-webassets: Patch for Python 3.9.
    
    * gnu/packages/python-web.scm (python-webassets)[arguments]: Add
    substitution.
---
 gnu/packages/python-web.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 98e3e6a..811650d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3762,8 +3762,12 @@ for Flask.")
     (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")))



reply via email to

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