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?
This commit is contained in:
Wolfgang Walther 2024-10-30 21:14:56 +01:00
parent 23b7dc8066
commit 95a3185bf8
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -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"
];
doCheck = false;
meta = {
description = "CLI for the fichub.net API";