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:
Dennis Gosnell 2020-07-05 02:59:59 +09:00 committed by (cdep)illabout
parent 935090ec23
commit e97b8b629c
No known key found for this signature in database
GPG Key ID: 462E0C03D11422F4

View File

@ -36,7 +36,13 @@ buildPythonPackage rec {
];
# 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; {
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 ];
};
}