Files
nixpkgs/pkgs/development/python-modules/intake/default.nix
2026-08-22 21:17:14 +00:00

154 lines
2.9 KiB
Nix
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
dask,
entrypoints,
fsspec,
jinja2,
msgpack,
networkx,
pandas,
platformdirs,
pyyaml,
# optional-dependencies
# server:
msgpack-numpy,
python-snappy,
tornado,
# dataframe:
pyarrow,
# plot
hvplot,
bokeh,
panel,
# remote:
requests,
# tests
addBinToPathHook,
intake-parquet,
pytestCheckHook,
pythonAtLeast,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "intake";
version = "2.0.9";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "intake";
repo = "intake";
tag = finalAttrs.version;
hash = "sha256-DiALGrJP4vLWygzZprjYCFM+TYtMS7NVM3+MTyjzcs0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
dask
entrypoints
fsspec
jinja2
msgpack
networkx
pandas
platformdirs
pyyaml
];
optional-dependencies = {
server = [
msgpack
python-snappy
tornado
];
dataframe = [
msgpack-numpy
pyarrow
];
plot = [
hvplot
bokeh
panel
];
remote = [ requests ];
};
nativeCheckInputs = [
addBinToPathHook
intake-parquet
pytestCheckHook
writableTmpDirAsHomeHook
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
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"
];
disabledTests = [
# Disable tests which touch network
"http"
"test_address_flag"
"test_dir"
"test_discover"
"test_filtered_compressed_cache"
"test_flatten_flag"
"test_get_dir"
"test_pagination"
"test_port_flag"
"test_read_part_compressed"
"test_read_partition"
"test_read_pattern"
"test_remote_arr"
"test_remote_cat"
"test_remote_env"
# ValueError
"test_datasource_python_to_dask"
"test_catalog_passthrough"
# Timing-based, flaky on darwin and possibly others
"test_idle_timer"
]
++ lib.optionals (pythonAtLeast "3.12") [
# Require deprecated distutils
"test_which"
"test_load"
];
pythonImportsCheck = [ "intake" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "Data load and catalog system";
homepage = "https://github.com/ContinuumIO/intake";
changelog = "https://github.com/intake/intake/blob/${finalAttrs.src.rev}/docs/source/changelog.rst";
license = lib.licenses.bsd2;
maintainers = [ ];
};
})