13 buildPythonPackage rec {
18 inherit pname version;
19 sha256 = "b4d87d107bff743aaa805c2b382c3661c4c175cdb159656d4972be2a9cef42cb";
22 # The version bounds in the setup.py file are unnecessarily restrictive.
23 # They have both python-slugify and slugify, don't know why
25 substituteInPlace setup.py \
26 --replace 'urllib3 >= 1.21.1, < 1.25' 'urllib3' \
27 --replace " 'slugify'," " "
30 propagatedBuildInputs = [
40 # Tests try to access the network.
43 mkdir -p "$HOME/.kaggle/"
44 echo '{"username":"foobar","key":"00000000000000000000000000000000"}' > "$HOME/.kaggle/kaggle.json"
45 $out/bin/kaggle --help > /dev/null
47 pythonImportsCheck = [ "kaggle" ];
50 description = "Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python 3";
51 homepage = "https://github.com/Kaggle/kaggle-api";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ cdepillabout ];