2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, dask
|
|
|
|
, holoviews
|
|
|
|
, hvplot
|
2021-09-22 15:38:15 +00:00
|
|
|
, fsspec
|
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
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, panel
|
2021-09-22 15:38:15 +00:00
|
|
|
, intake-parquet
|
2020-05-15 21:57:56 +00:00
|
|
|
, pyarrow
|
2020-10-07 09:15:18 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, python-snappy
|
|
|
|
, requests
|
|
|
|
, ruamel_yaml
|
|
|
|
, six
|
|
|
|
, tornado
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intake";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.6.3";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "f64543353f30d9440b953984f78b7a0954e5756d70c64243609d307ba488014f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
dask
|
|
|
|
holoviews
|
|
|
|
hvplot
|
|
|
|
jinja2
|
|
|
|
msgpack-numpy
|
|
|
|
msgpack
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
panel
|
|
|
|
python-snappy
|
|
|
|
requests
|
|
|
|
ruamel_yaml
|
|
|
|
six
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
checkInputs = [
|
|
|
|
fsspec
|
|
|
|
intake-parquet
|
|
|
|
pyarrow
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Is in setup_requires but not used in setup.py...
|
|
|
|
substituteInPlace setup.py --replace "'pytest-runner'" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
|
|
|
|
# test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
|
2020-10-07 09:15:18 +00:00
|
|
|
preCheck = ''
|
|
|
|
HOME=$TMPDIR
|
|
|
|
PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
disabledTests = [
|
2021-09-22 15:38:15 +00:00
|
|
|
# disable tests which touch network and are broken
|
2020-10-07 09:15:18 +00:00
|
|
|
"test_discover"
|
|
|
|
"test_filtered_compressed_cache"
|
|
|
|
"test_get_dir"
|
|
|
|
"test_remote_cat"
|
|
|
|
"http"
|
2021-02-19 19:06:45 +00:00
|
|
|
"test_read_pattern"
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_remote_arr"
|
2021-02-17 17:02:09 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data load and catalog system";
|
|
|
|
homepage = "https://github.com/ContinuumIO/intake";
|
|
|
|
license = licenses.bsd2;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|