kaggle: init at 1.5.6

This commit is contained in:
(cdep)illabout 2020-07-03 17:51:41 +09:00
parent 7df7291473
commit 935090ec23
No known key found for this signature in database
GPG Key ID: 462E0C03D11422F4
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ buildPythonPackage
, certifi
, fetchPypi
, lib
, python-dateutil
, python-slugify
, six
, requests
, tqdm
, urllib3
}:
buildPythonPackage rec {
pname = "kaggle";
version = "1.5.6";
src = fetchPypi {
inherit pname version;
sha256 = "0f5qrkgklcpgbwncrif7aw4f86dychqplh7k3f4rljwnr9yhjb1w";
};
# The version bounds in the setup.py file are unnecessarily restrictive.
patchPhase = ''
substituteInPlace setup.py \
--replace 'urllib3 >= 1.21.1, < 1.25' 'urllib3'
'';
propagatedBuildInputs = [
certifi
python-dateutil
python-slugify
requests
six
tqdm
urllib3
];
# Tests try to access the network.
doCheck = false;
meta = with lib; {
description = "Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python 3";
homepage = "https://github.com/Kaggle/kaggle-api";
license = licenses.asl20;
maintainers = with maintainers; [ cdepillabout ];
};
}

View File

@ -2036,6 +2036,8 @@ in
ir-standard-fonts = callPackage ../data/fonts/ir-standard-fonts { }; ir-standard-fonts = callPackage ../data/fonts/ir-standard-fonts { };
kaggle = with python3Packages; toPythonApplication kaggle;
lynis = callPackage ../tools/security/lynis { }; lynis = callPackage ../tools/security/lynis { };
mapproxy = callPackage ../applications/misc/mapproxy { }; mapproxy = callPackage ../applications/misc/mapproxy { };

View File

@ -4330,6 +4330,8 @@ in {
jupyterhub-ldapauthenticator = callPackage ../development/python-modules/jupyterhub-ldapauthenticator { }; jupyterhub-ldapauthenticator = callPackage ../development/python-modules/jupyterhub-ldapauthenticator { };
kaggle = callPackage ../development/python-modules/kaggle { };
keyring = if isPy3k then keyring = if isPy3k then
callPackage ../development/python-modules/keyring { } callPackage ../development/python-modules/keyring { }
else else