mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
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:
parent
23b7dc8066
commit
95a3185bf8
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user