1{
2 lib,
3 buildPythonPackage,
4 factory-boy,
5 fetchFromGitHub,
6 httpretty,
7 inflection,
8 jsondate,
9 mock,
10 more-itertools,
11 numpy,
12 pandas,
13 parameterized,
14 pytestCheckHook,
15 python-dateutil,
16 pythonOlder,
17 requests,
18 six,
19}:
20
21buildPythonPackage rec {
22 pname = "nasdaq-data-link";
23 version = "1.0.4";
24 format = "setuptools";
25
26 disabled = pythonOlder "3.7";
27
28 src = fetchFromGitHub {
29 owner = "Nasdaq";
30 repo = "data-link-python";
31 tag = version;
32 hash = "sha256-Q3Ay9FpJsvSVu0WU2bxFyo3ODKP/ZUo3SqsBtOGrIIE=";
33 };
34
35 propagatedBuildInputs = [
36 inflection
37 more-itertools
38 numpy
39 pandas
40 python-dateutil
41 requests
42 six
43 ];
44
45 nativeCheckInputs = [
46 factory-boy
47 httpretty
48 jsondate
49 mock
50 parameterized
51 pytestCheckHook
52 ];
53
54 pythonImportsCheck = [ "nasdaqdatalink" ];
55
56 meta = with lib; {
57 description = "Library for Nasdaq Data Link's RESTful API";
58 homepage = "https://github.com/Nasdaq/data-link-python";
59 license = licenses.mit;
60 maintainers = with maintainers; [ fab ];
61 };
62}