me
/
guix
Archived
1
0
Fork 0

gnu: python-pytidylib: Fix failing test.

* gnu/packages/python-xyz.scm (python-pytidylib)[arguments]: Add phase.
master
Marius Bakke 2023-01-07 15:03:47 +01:00
parent a6c005dbac
commit ed59b32a40
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 0 deletions

View File

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