1{ lib
2, appdirs
3, bokeh
4, buildPythonPackage
5, dask
6, entrypoints
7, fetchFromGitHub
8, fsspec
9, holoviews
10, hvplot
11, intake-parquet
12, jinja2
13, msgpack
14, msgpack-numpy
15, numpy
16, pandas
17, panel
18, pyarrow
19, pytestCheckHook
20, python-snappy
21, pythonOlder
22, pyyaml
23, requests
24, stdenv
25, tornado
26}:
27
28buildPythonPackage rec {
29 pname = "intake";
30 version = "0.6.4";
31
32 disabled = pythonOlder "3.7";
33
34 src = fetchFromGitHub {
35 owner = pname;
36 repo = pname;
37 rev = version;
38 sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl";
39 };
40
41 propagatedBuildInputs = [
42 appdirs
43 bokeh
44 dask
45 entrypoints
46 fsspec
47 holoviews
48 hvplot
49 jinja2
50 msgpack
51 msgpack-numpy
52 numpy
53 pandas
54 panel
55 pyarrow
56 python-snappy
57 pyyaml
58 requests
59 tornado
60 ];
61
62 checkInputs = [
63 intake-parquet
64 pytestCheckHook
65 ];
66
67 postPatch = ''
68 substituteInPlace setup.py \
69 --replace "'pytest-runner'" ""
70 '';
71
72 # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
73 # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
74 preCheck = ''
75 HOME=$TMPDIR
76 PATH=$out/bin:$PATH
77 '';
78
79 disabledTests = [
80 # Disable tests which touch network and are broken
81 "test_discover"
82 "test_filtered_compressed_cache"
83 "test_get_dir"
84 "test_remote_cat"
85 "http"
86 "test_read_pattern"
87 "test_remote_arr"
88 "test_flatten_flag"
89 # Timing-based, flaky on darwin and possibly others
90 "TestServerV1Source.test_idle_timer"
91 ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [
92 # Flaky with older low-res mtime on darwin < 10.13 (#143987)
93 "test_second_load_timestamp"
94 ];
95
96 pythonImportsCheck = [
97 "intake"
98 ];
99
100 meta = with lib; {
101 description = "Data load and catalog system";
102 homepage = "https://github.com/ContinuumIO/intake";
103 license = licenses.bsd2;
104 maintainers = with maintainers; [ costrouc ];
105 };
106}