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