ttaenc: init at 3.4.1 (#238757)
[NixPkgs.git] / pkgs / development / python-modules / intake / default.nix
blob1422752b323087d5d6a801598eeb78cafad026db
2   lib,
3   stdenv,
4   platformdirs,
5   bokeh,
6   buildPythonPackage,
7   dask,
8   entrypoints,
9   fetchFromGitHub,
10   fsspec,
11   hvplot,
12   intake-parquet,
13   jinja2,
14   msgpack,
15   msgpack-numpy,
16   pandas,
17   panel,
18   pyarrow,
19   pytestCheckHook,
20   python-snappy,
21   pythonOlder,
22   pythonAtLeast,
23   pyyaml,
24   networkx,
25   requests,
26   setuptools,
27   setuptools-scm,
28   tornado,
31 buildPythonPackage rec {
32   pname = "intake";
33   version = "2.0.7";
34   pyproject = true;
36   disabled = pythonOlder "3.8";
38   src = fetchFromGitHub {
39     owner = "intake";
40     repo = "intake";
41     rev = "refs/tags/${version}";
42     hash = "sha256-F13jbAQP3G3cKeAegM1w/t32xyC0BgL9/67aIlzA4SE=";
43   };
45   nativeBuildInputs = [
46     setuptools
47     setuptools-scm
48   ];
50   propagatedBuildInputs = [
51     platformdirs
52     dask
53     entrypoints
54     fsspec
55     msgpack
56     jinja2
57     pandas
58     pyyaml
59     networkx
60   ];
62   nativeCheckInputs = [
63     intake-parquet
64     pytestCheckHook
65   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
67   optional-dependencies = {
68     server = [
69       msgpack
70       python-snappy
71       tornado
72     ];
73     dataframe = [
74       msgpack-numpy
75       pyarrow
76     ];
77     plot = [
78       hvplot
79       bokeh
80       panel
81     ];
82     remote = [ requests ];
83   };
85   __darwinAllowLocalNetworking = true;
87   preCheck = ''
88     export HOME=$(mktemp -d);
89     export PATH="$PATH:$out/bin";
90   '';
92   disabledTestPaths = [
93     # Missing plusins
94     "intake/catalog/tests/test_alias.py"
95     "intake/catalog/tests/test_gui.py"
96     "intake/catalog/tests/test_local.py"
97     "intake/catalog/tests/test_reload_integration.py"
98     "intake/source/tests/test_csv.py"
99     "intake/source/tests/test_derived.py"
100     "intake/source/tests/test_npy.py"
101     "intake/source/tests/test_text.py"
102     "intake/tests/test_config.py"
103     "intake/tests/test_top_level.py"
104   ];
106   disabledTests =
107     [
108       # Disable tests which touch network
109       "http"
110       "test_address_flag"
111       "test_dir"
112       "test_discover"
113       "test_filtered_compressed_cache"
114       "test_flatten_flag"
115       "test_get_dir"
116       "test_pagination"
117       "test_port_flag"
118       "test_read_part_compressed"
119       "test_read_partition"
120       "test_read_pattern"
121       "test_remote_arr"
122       "test_remote_cat"
123       "test_remote_env"
124       # ValueError
125       "test_datasource_python_to_dask"
126       "test_catalog_passthrough"
127       # Timing-based, flaky on darwin and possibly others
128       "test_idle_timer"
129     ]
130     ++ lib.optionals (pythonAtLeast "3.12") [
131       # Require deprecated distutils
132       "test_which"
133       "test_load"
134     ]
135     ++
136       lib.optionals
137         (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13")
138         [
139           # Flaky with older low-res mtime on darwin < 10.13 (#143987)
140           "test_second_load_timestamp"
141         ];
143   pythonImportsCheck = [ "intake" ];
145   meta = with lib; {
146     description = "Data load and catalog system";
147     homepage = "https://github.com/ContinuumIO/intake";
148     changelog = "https://github.com/intake/intake/blob/${version}/docs/source/changelog.rst";
149     license = licenses.bsd2;
150     maintainers = [ ];
151   };