at 24.05-pre 1.1 kB view raw
1{ buildPythonPackage 2, bleach 3, certifi 4, fetchPypi 5, lib 6, python-dateutil 7, python-slugify 8, six 9, requests 10, tqdm 11, urllib3 12}: 13 14buildPythonPackage rec { 15 pname = "kaggle"; 16 version = "1.5.16"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-prNUL1kM80GlrUQdWuAhvpO9ZEQclsdYsVSQNJWjpgA="; 21 }; 22 23 propagatedBuildInputs = [ 24 bleach 25 certifi 26 python-dateutil 27 python-slugify 28 requests 29 six 30 tqdm 31 urllib3 32 bleach 33 ]; 34 35 # Tests try to access the network. 36 checkPhase = '' 37 export HOME="$TMP" 38 mkdir -p "$HOME/.kaggle/" 39 echo '{"username":"foobar","key":"00000000000000000000000000000000"}' > "$HOME/.kaggle/kaggle.json" 40 $out/bin/kaggle --help > /dev/null 41 ''; 42 pythonImportsCheck = [ "kaggle" ]; 43 44 meta = with lib; { 45 description = "Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python 3"; 46 homepage = "https://github.com/Kaggle/kaggle-api"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ mbalatsko ]; 49 }; 50}