2019-02-24 15:23:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, dask
|
|
|
|
, holoviews
|
2019-09-01 07:32:43 +01:00
|
|
|
, hvplot
|
2019-02-24 15:23:55 +00:00
|
|
|
, jinja2
|
2019-09-29 09:34:30 +01:00
|
|
|
, msgpack
|
2020-10-04 21:26:18 +01:00
|
|
|
, msgpack-numpy
|
2019-02-24 15:23:55 +00:00
|
|
|
, numpy
|
|
|
|
, pandas
|
2019-09-01 07:32:43 +01:00
|
|
|
, panel
|
2020-05-11 22:18:05 +01:00
|
|
|
, pyarrow
|
2020-10-04 21:26:18 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2019-02-24 15:23:55 +00:00
|
|
|
, python-snappy
|
|
|
|
, requests
|
|
|
|
, ruamel_yaml
|
|
|
|
, six
|
|
|
|
, tornado
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intake";
|
2020-06-06 07:47:14 +01:00
|
|
|
version = "0.6.0";
|
2019-09-01 07:32:43 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-02-24 15:23:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:14 +01:00
|
|
|
sha256 = "0c284abeb74927a7366dcab6cefc010c4d050365b8af61c37326a2473a490a4e";
|
2019-02-24 15:23:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
dask
|
|
|
|
holoviews
|
2019-09-01 07:32:43 +01:00
|
|
|
hvplot
|
2019-02-24 15:23:55 +00:00
|
|
|
jinja2
|
|
|
|
msgpack-numpy
|
2019-09-29 09:34:30 +01:00
|
|
|
msgpack
|
2019-02-24 15:23:55 +00:00
|
|
|
numpy
|
|
|
|
pandas
|
2019-09-01 07:32:43 +01:00
|
|
|
panel
|
2019-02-24 15:23:55 +00:00
|
|
|
python-snappy
|
|
|
|
requests
|
|
|
|
ruamel_yaml
|
|
|
|
six
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
2020-10-04 21:26:18 +01:00
|
|
|
checkInputs = [ pyarrow pytestCheckHook ];
|
|
|
|
|
2019-09-01 07:32:43 +01: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-04 21:26:18 +01:00
|
|
|
preCheck = ''
|
|
|
|
HOME=$TMPDIR
|
|
|
|
PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
# disable tests which touch network
|
|
|
|
disabledTests = ''
|
|
|
|
"test_discover"
|
|
|
|
"test_filtered_compressed_cache"
|
|
|
|
"test_get_dir"
|
|
|
|
"test_remote_cat"
|
|
|
|
"http"
|
2019-02-24 15:23:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data load and catalog system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ContinuumIO/intake";
|
2019-02-24 15:23:55 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|