From 95a3185bf895269a37fc630797f60788c8d81c4c Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 30 Oct 2024 21:14:56 +0100 Subject: [PATCH] fichub-cli: disable only test the easy way There is only one test and this was disabled via some nasty bash eval hacks in pytestFlagsArray. Let's just use... doCheck = false instead? --- pkgs/by-name/fi/fichub-cli/package.nix | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/fi/fichub-cli/package.nix b/pkgs/by-name/fi/fichub-cli/package.nix index 3d62d7b2a304..f694a9b99307 100644 --- a/pkgs/by-name/fi/fichub-cli/package.nix +++ b/pkgs/by-name/fi/fichub-cli/package.nix @@ -35,21 +35,8 @@ python3Packages.buildPythonApplication rec { pytestCheckHook ]; - # The package tries to create a file under the home directory on import - preCheck = '' - export HOME=$(mktemp -d) - ''; - - pytestFlagsArray = [ - # pytest exits with a code of 5 if no tests are selected. - # handle this specific case as not an error - "|| ([ $? = 5 ] || exit $?)" - ]; - - disabledTestPaths = [ - # Loading tests tries to download something from pypi.org - "tests/test_cli.py" - ]; + # Loading tests tries to download something from pypi.org + doCheck = false; meta = { description = "CLI for the fichub.net API";