mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{ 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
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "quandl";
|
|
version = "3.5.0";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "Quandl";
|
|
sha256 = "0zpw0nwqr4g56l9z4my0fahfgpcmfx74acbmv6nfx1dmq5ggraf3";
|
|
};
|
|
|
|
checkInputs = [
|
|
nose
|
|
unittest2
|
|
flake8
|
|
httpretty
|
|
mock
|
|
jsondate
|
|
parameterized
|
|
faker
|
|
factory_boy
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pandas
|
|
numpy
|
|
requests
|
|
inflection
|
|
python-dateutil
|
|
six
|
|
more-itertools
|
|
] ++ lib.optionals (!isPy3k) [
|
|
pyopenssl
|
|
ndg-httpsclient
|
|
pyasn1
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
importlib-metadata
|
|
];
|
|
|
|
pythonImportsCheck = [ "quandl" ];
|
|
|
|
meta = with lib; {
|
|
description = "Quandl Python client library";
|
|
homepage = "https://github.com/quandl/quandl-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ilya-kolpakov ];
|
|
};
|
|
}
|