2017-11-30 12:48:46 +00:00
|
|
|
{
|
2020-06-24 00:21:16 +01:00
|
|
|
lib, fetchPypi, buildPythonPackage, isPy3k, pythonOlder,
|
2017-11-30 12:48:46 +00:00
|
|
|
# runtime dependencies
|
2020-06-24 00:21:16 +01:00
|
|
|
pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, importlib-metadata,
|
2017-11-30 12:48:46 +00:00
|
|
|
# test suite dependencies
|
2018-11-29 13:56:40 +00:00
|
|
|
nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy,
|
2017-11-30 12:48:46 +00:00
|
|
|
# additional runtime dependencies are required on Python 2.x
|
|
|
|
pyOpenSSL ? null, ndg-httpsclient ? null, pyasn1 ? null
|
|
|
|
}:
|
|
|
|
|
2017-12-14 14:28:19 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quandl";
|
2020-03-25 12:52:23 +00:00
|
|
|
version = "3.5.0";
|
|
|
|
disabled = !isPy3k;
|
2017-11-30 12:48:46 +00:00
|
|
|
|
2018-11-29 13:56:40 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Quandl";
|
2020-03-25 12:52:23 +00:00
|
|
|
sha256 = "0zpw0nwqr4g56l9z4my0fahfgpcmfx74acbmv6nfx1dmq5ggraf3";
|
2017-11-30 12:48:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
unittest2
|
|
|
|
flake8
|
|
|
|
httpretty
|
|
|
|
mock
|
|
|
|
jsondate
|
2018-11-29 13:56:40 +00:00
|
|
|
parameterized
|
|
|
|
faker
|
|
|
|
factory_boy
|
2017-11-30 12:48:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pandas
|
|
|
|
numpy
|
|
|
|
requests
|
|
|
|
inflection
|
|
|
|
python-dateutil
|
|
|
|
six
|
|
|
|
more-itertools
|
2019-11-24 19:14:31 +00:00
|
|
|
] ++ lib.optionals (!isPy3k) [
|
2017-11-30 12:48:46 +00:00
|
|
|
pyOpenSSL
|
|
|
|
ndg-httpsclient
|
|
|
|
pyasn1
|
2020-06-24 00:21:16 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2017-11-30 12:48:46 +00:00
|
|
|
];
|
|
|
|
|
2020-03-25 12:52:23 +00:00
|
|
|
meta = with lib; {
|
2017-11-30 12:48:46 +00:00
|
|
|
description = "Quandl Python client library";
|
2020-03-25 12:52:23 +00:00
|
|
|
homepage = "https://github.com/quandl/quandl-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ilya-kolpakov ];
|
2017-11-30 12:48:46 +00:00
|
|
|
};
|
|
|
|
}
|