From acb2c75e701b031eaf12c54146663d42a72c672f Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 26 Jul 2024 03:28:57 +0200 Subject: [PATCH] fava: fix disabled cli test --- pkgs/applications/office/fava/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/office/fava/default.nix b/pkgs/applications/office/fava/default.nix index be136ba53700..d08abeb95e06 100644 --- a/pkgs/applications/office/fava/default.nix +++ b/pkgs/applications/office/fava/default.nix @@ -11,6 +11,10 @@ python3Packages.buildPythonApplication rec { }; nativeBuildInputs = with python3Packages; [ setuptools-scm ]; + postPatch = '' + substituteInPlace tests/test_cli.py \ + --replace-fail '"fava"' '"${placeholder "out"}/bin/fava"' + ''; propagatedBuildInputs = with python3Packages; [ babel @@ -41,11 +45,6 @@ python3Packages.buildPythonApplication rec { export HOME=$TEMPDIR ''; - disabledTests = [ - # runs fava in debug mode, which tries to interpret bash wrapper as Python - "test_cli" - ]; - meta = with lib; { description = "Web interface for beancount"; mainProgram = "fava";