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 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
47
48 nativeCheckInputs = [
49 factory-boy
50 faker
51 httpretty
52 jsondate
53 mock
54 parameterized
55 pytestCheckHook
56 ];
57
58 pythonImportsCheck = [ "quandl" ];
59
60 meta = with lib; {
61 description = "Quandl Python client library";
62 homepage = "https://github.com/quandl/quandl-python";
63 changelog = "https://github.com/quandl/quandl-python/blob/master/CHANGELOG.md";
64 license = licenses.mit;
65 maintainers = with maintainers; [ ilya-kolpakov ];
66 };
67}