3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/quandl/default.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2017-11-30 12:48:46 +00:00
{
2018-11-29 13:56:40 +00:00
lib, fetchPypi, buildPythonPackage, isPy3k,
2017-11-30 12:48:46 +00:00
# runtime dependencies
pandas, numpy, requests, inflection, python-dateutil, six, more-itertools,
# 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
}:
buildPythonPackage rec {
pname = "quandl";
2018-11-29 13:56:40 +00:00
version = "3.4.5";
2017-11-30 12:48:46 +00:00
2018-11-29 13:56:40 +00:00
src = fetchPypi {
inherit version;
pname = "Quandl";
sha256 = "1rflyc6q3wa5ghc5v81yw79yg7lkpgd2c22mgbb0cvza724k53ys";
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
] ++ 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;
};
}