2021-01-05 17:05:55 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k, pythonOlder
|
|
|
|
# runtime dependencies
|
|
|
|
, pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, importlib-metadata
|
|
|
|
# test suite dependencies
|
|
|
|
, nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy
|
|
|
|
# additional runtime dependencies are required on Python 2.x
|
|
|
|
, pyopenssl, ndg-httpsclient, pyasn1
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quandl";
|
2021-04-13 19:44:15 +00:00
|
|
|
version = "3.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Quandl";
|
2021-04-13 19:44:15 +00:00
|
|
|
sha256 = "0jr69fqxhzdmkfh3fxz0yp2kks2hkmixrscjjf59q2l7irglwhc4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
unittest2
|
|
|
|
flake8
|
|
|
|
httpretty
|
|
|
|
mock
|
|
|
|
jsondate
|
|
|
|
parameterized
|
|
|
|
faker
|
|
|
|
factory_boy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pandas
|
|
|
|
numpy
|
|
|
|
requests
|
|
|
|
inflection
|
|
|
|
python-dateutil
|
|
|
|
six
|
|
|
|
more-itertools
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
2021-01-05 17:05:55 +00:00
|
|
|
pyopenssl
|
2020-04-24 23:36:52 +00:00
|
|
|
ndg-httpsclient
|
|
|
|
pyasn1
|
2020-07-18 16:06:22 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "quandl" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Quandl Python client library";
|
|
|
|
homepage = "https://github.com/quandl/quandl-python";
|
2021-04-13 19:44:15 +00:00
|
|
|
changelog = "https://github.com/quandl/quandl-python/blob/master/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ilya-kolpakov ];
|
|
|
|
};
|
|
|
|
}
|