From 60f89a2fe4e2de08838a4f923e89aea123a0a3c0 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Tue, 31 Dec 2024 22:52:02 +0300 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5fd6cefbbedfc87761c210ea8f5ec0d39bf66a5d..68b1c42a40b9325eeac96a63d4ee9fd1943c241a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -36562,7 +36562,10 @@ into a human readable HTML table representation.") (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