1{
2 lib,
3 buildPythonPackage,
4 factory-boy,
5 faker,
6 fetchPypi,
7 httpretty,
8 importlib-metadata,
9 inflection,
10 jsondate,
11 mock,
12 more-itertools,
13 numpy,
14 pandas,
15 parameterized,
16 pytestCheckHook,
17 python-dateutil,
18 pythonOlder,
19 requests,
20 six,
21}:
22
23buildPythonPackage rec {
24 pname = "quandl";
25 version = "3.7.0";
26 format = "setuptools";
27
28 disabled = pythonOlder "3.6";
29
30 src = fetchPypi {
31 inherit version;
32 pname = "Quandl";
33 hash = "sha256-bguC+8eGFhCzV3xTlyd8QiDgZe7g/tTkbNa2AhZVtkw=";
34 };
35
36 patches = [ ./pandas2-datetime-removal.patch ];
37
38 propagatedBuildInputs = [
39 pandas
40 numpy
41 requests
42 inflection
43 python-dateutil
44 six
45 more-itertools
46 ]
47 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
48
49 nativeCheckInputs = [
50 factory-boy
51 faker
52 httpretty
53 jsondate
54 mock
55 parameterized
56 pytestCheckHook
57 ];
58
59 pythonImportsCheck = [ "quandl" ];
60
61 meta = with lib; {
62 description = "Quandl Python client library";
63 homepage = "https://github.com/quandl/quandl-python";
64 changelog = "https://github.com/quandl/quandl-python/blob/master/CHANGELOG.md";
65 license = licenses.mit;
66 maintainers = with maintainers; [ ilya-kolpakov ];
67 };
68}