1{ lib
2, buildPythonPackage
3, factory_boy
4, faker
5, fetchPypi
6, httpretty
7, importlib-metadata
8, inflection
9, jsondate
10, mock
11, more-itertools
12, numpy
13, pandas
14, parameterized
15, pytestCheckHook
16, python-dateutil
17, pythonOlder
18, requests
19, six
20}:
21
22buildPythonPackage rec {
23 pname = "quandl";
24 version = "3.7.0";
25 format = "setuptools";
26
27 disabled = pythonOlder "3.6";
28
29 src = fetchPypi {
30 inherit version;
31 pname = "Quandl";
32 sha256 = "6e0b82fbc7861610b3577c5397277c4220e065eee0fed4e46cd6b6021655b64c";
33 };
34
35 propagatedBuildInputs = [
36 pandas
37 numpy
38 requests
39 inflection
40 python-dateutil
41 six
42 more-itertools
43 ] ++ lib.optionals (pythonOlder "3.8") [
44 importlib-metadata
45 ];
46
47 nativeCheckInputs = [
48 factory_boy
49 faker
50 httpretty
51 jsondate
52 mock
53 parameterized
54 pytestCheckHook
55 ];
56
57 pythonImportsCheck = [
58 "quandl"
59 ];
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}