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