me
/
guix
Archived
1
0
Fork 0

gnu: python-jedi: Fix build.

* gnu/packages/python-xyz.scm (python-jedi)
[phases]{fix-completion-test}: New phase.
{check}: Delete trailing #t.
Maxim Cournoyer 2022-06-24 09:27:32 -04:00
parent cc7a3055aa
commit 0c6960c17a
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 9 additions and 2 deletions

View File

@ -17038,12 +17038,19 @@ scans through a file and detects issues.")
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-completion-test
(lambda _
;; This resolves a failure in the 'test_completion' test (see:
;; https://github.com/davidhalter/jedi/issues/1824).
;; TODO: Remove after a new release is made (currently: 0.18.1).
(substitute* "test/completion/lambdas.py"
(("\\[a for a in \\[1,2\\] if lambda: 3\\]\\[0\\]")
"[a for a in [1,2] if (lambda: 3)][0]"))))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
(invoke "python" "-m" "pytest" "-vv")) (invoke "python" "-m" "pytest" "-vv")))))))
#t)))))
(native-inputs (native-inputs
(list python-colorama python-docopt python-pytest)) (list python-colorama python-docopt python-pytest))
(propagated-inputs (propagated-inputs