2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, dask
|
|
|
|
, holoviews
|
|
|
|
, hvplot
|
|
|
|
, jinja2
|
|
|
|
, msgpack-numpy
|
|
|
|
, msgpack
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, panel
|
2020-05-15 21:57:56 +00:00
|
|
|
, pyarrow
|
2020-04-24 23:36:52 +00:00
|
|
|
, python-snappy
|
|
|
|
, requests
|
|
|
|
, ruamel_yaml
|
|
|
|
, six
|
|
|
|
, tornado
|
|
|
|
, pytest
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intake";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "0.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "0c284abeb74927a7366dcab6cefc010c4d050365b8af61c37326a2473a490a4e";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
checkInputs = [ pyarrow pytest ];
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
checkPhase = ''
|
|
|
|
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_discover and not test_filtered_compressed_cache"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data load and catalog system";
|
|
|
|
homepage = "https://github.com/ContinuumIO/intake";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|