kaggle: add simple check to make sure it's not trivially broken
Co-authored-by: Jon <jonringer@users.noreply.github.com>
This commit is contained in:
parent
935090ec23
commit
e97b8b629c
@ -36,7 +36,13 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Tests try to access the network.
|
# Tests try to access the network.
|
||||||
doCheck = false;
|
checkPhase = ''
|
||||||
|
export HOME="$TMP"
|
||||||
|
mkdir -p "$HOME/.kaggle/"
|
||||||
|
echo '{"username":"foobar","key":"00000000000000000000000000000000"}' > "$HOME/.kaggle/kaggle.json"
|
||||||
|
$out/bin/kaggle --help > /dev/null
|
||||||
|
'';
|
||||||
|
pythonImportsCheck = [ "kaggle" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python 3";
|
description = "Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python 3";
|
||||||
@ -45,4 +51,3 @@ buildPythonPackage rec {
|
|||||||
maintainers = with maintainers; [ cdepillabout ];
|
maintainers = with maintainers; [ cdepillabout ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user