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