guix-commits
[Top][All Lists]
Advanced

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

08/13: gnu: python-pytidylib: Fix failing test.


From: guix-commits
Subject: 08/13: gnu: python-pytidylib: Fix failing test.
Date: Sat, 7 Jan 2023 15:14:28 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit ed59b32a40a590eb399de9a53be319c8eac77013
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jan 7 15:03:47 2023 +0100

    gnu: python-pytidylib: Fix failing test.
    
    * gnu/packages/python-xyz.scm (python-pytidylib)[arguments]: Add phase.
---
 gnu/packages/python-xyz.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d78716107f..3b202afcd1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27145,6 +27145,12 @@ be necessary when using @code{cmd}.")
     (arguments
      '(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-queue-import
+           (lambda _
+             ;; Adjust Queue import for Python 3.  Remove for versions >=0.4.0.
+             (substitute* "tests/threadsafety.py"
+               (("from Queue import Queue")
+                "from queue import Queue"))))
          (add-before 'build 'qualify-libtidy
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((libtidy (search-input-file inputs "/lib/libtidy.so")))



reply via email to

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