2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2024-02-29 20:09:43 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, appdirs
|
2021-10-28 06:52:43 +00:00
|
|
|
, bokeh
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, dask
|
2021-10-28 06:52:43 +00:00
|
|
|
, entrypoints
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
2020-04-24 23:36:52 +00:00
|
|
|
, hvplot
|
2021-10-28 06:52:43 +00:00
|
|
|
, intake-parquet
|
2020-04-24 23:36:52 +00:00
|
|
|
, jinja2
|
|
|
|
, msgpack
|
2020-10-07 09:15:18 +00:00
|
|
|
, msgpack-numpy
|
2020-04-24 23:36:52 +00:00
|
|
|
, pandas
|
|
|
|
, panel
|
2020-05-15 21:57:56 +00:00
|
|
|
, pyarrow
|
2020-10-07 09:15:18 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, python-snappy
|
2021-10-28 06:52:43 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2024-02-29 20:09:43 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, tornado
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intake";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.0.3";
|
|
|
|
pyproject = true;
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-10-09 19:29:22 +00:00
|
|
|
owner = "intake";
|
|
|
|
repo = "intake";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-Fyv85HkoE9OPOoSHR1sgCG0iAFuSiQMT7cyZcQyLvv0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
dask
|
2021-10-28 06:52:43 +00:00
|
|
|
entrypoints
|
|
|
|
fsspec
|
2020-04-24 23:36:52 +00:00
|
|
|
msgpack
|
2022-06-26 10:26:21 +00:00
|
|
|
jinja2
|
2020-04-24 23:36:52 +00:00
|
|
|
pandas
|
2021-10-28 06:52:43 +00:00
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-22 15:38:15 +00:00
|
|
|
intake-parquet
|
|
|
|
pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
server = [
|
|
|
|
msgpack
|
|
|
|
python-snappy
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
dataframe = [
|
|
|
|
msgpack-numpy
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
plot = [
|
|
|
|
hvplot
|
|
|
|
bokeh
|
|
|
|
panel
|
|
|
|
];
|
|
|
|
remote = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
};
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
preCheck = ''
|
2022-06-26 10:26:21 +00:00
|
|
|
export HOME=$(mktemp -d);
|
|
|
|
export PATH="$PATH:$out/bin";
|
2020-10-07 09:15:18 +00:00
|
|
|
'';
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Missing plusins
|
|
|
|
"intake/catalog/tests/test_alias.py"
|
|
|
|
"intake/catalog/tests/test_gui.py"
|
|
|
|
"intake/catalog/tests/test_local.py"
|
|
|
|
"intake/catalog/tests/test_reload_integration.py"
|
|
|
|
"intake/source/tests/test_csv.py"
|
|
|
|
"intake/source/tests/test_derived.py"
|
|
|
|
"intake/source/tests/test_npy.py"
|
|
|
|
"intake/source/tests/test_text.py"
|
|
|
|
"intake/tests/test_config.py"
|
|
|
|
"intake/tests/test_top_level.py"
|
|
|
|
];
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
disabledTests = [
|
2022-06-26 10:26:21 +00:00
|
|
|
# Disable tests which touch network
|
|
|
|
"http"
|
2023-10-09 19:29:22 +00:00
|
|
|
"test_address_flag"
|
2022-06-26 10:26:21 +00:00
|
|
|
"test_dir"
|
2020-10-07 09:15:18 +00:00
|
|
|
"test_discover"
|
|
|
|
"test_filtered_compressed_cache"
|
2022-06-26 10:26:21 +00:00
|
|
|
"test_flatten_flag"
|
2020-10-07 09:15:18 +00:00
|
|
|
"test_get_dir"
|
2022-06-26 10:26:21 +00:00
|
|
|
"test_pagination"
|
2023-10-09 19:29:22 +00:00
|
|
|
"test_port_flag"
|
2022-06-26 10:26:21 +00:00
|
|
|
"test_read_part_compressed"
|
|
|
|
"test_read_partition"
|
2021-02-19 19:06:45 +00:00
|
|
|
"test_read_pattern"
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_remote_arr"
|
2022-06-26 10:26:21 +00:00
|
|
|
"test_remote_cat"
|
2023-02-02 18:25:31 +00:00
|
|
|
"test_remote_env"
|
2022-06-26 10:26:21 +00:00
|
|
|
# ValueError
|
2024-02-29 20:09:43 +00:00
|
|
|
"test_datasource_python_to_dask"
|
|
|
|
"test_catalog_passthrough"
|
2021-12-06 16:07:01 +00:00
|
|
|
# Timing-based, flaky on darwin and possibly others
|
2023-10-09 19:29:22 +00:00
|
|
|
"test_idle_timer"
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [
|
|
|
|
# Flaky with older low-res mtime on darwin < 10.13 (#143987)
|
|
|
|
"test_second_load_timestamp"
|
2021-02-17 17:02:09 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"intake"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Data load and catalog system";
|
|
|
|
homepage = "https://github.com/ContinuumIO/intake";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/intake/intake/blob/${version}/docs/source/changelog.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|