summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/python-xyz.scm6
1 files changed, 6 insertions, 0 deletions
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")))