gnu: python-face: Fix build.

* gnu/packages/python-xyz.scm (python-face): Fix build.
[arguments] <#:phases>: Run the tests using the full path to the Python binary
from the inputs to fix a failing test.

Change-Id: Ie8951d622f91381207498e9adc398aa92b309cdf
This commit is contained in:
Artyom V. Poptsov 2024-12-31 22:52:02 +03:00
parent dcc63db15c
commit 60f89a2fe4
No known key found for this signature in database
GPG key ID: 935EBE0736DC857E

View file

@ -36562,7 +36562,10 @@ (define-public python-face
(when tests?
;; Make installed package available for running the tests.
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v")))))))
;; We must provide the full path to the Python binary
;; otherwise "test_search_prs_basic" test fails.
(invoke (search-input-file inputs "/bin/python")
"-m" "pytest" "-v")))))))
(native-inputs
(list python-pytest))
(propagated-inputs