60 lines
1 KiB
Nix
60 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, appdirs
|
|
, dask
|
|
, holoviews
|
|
, jinja2
|
|
, msgpack-numpy
|
|
, msgpack-python
|
|
, numpy
|
|
, pandas
|
|
, python-snappy
|
|
, requests
|
|
, ruamel_yaml
|
|
, six
|
|
, tornado
|
|
, pytest
|
|
, pythonOlder
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intake";
|
|
version = "0.4.1";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f47e53aa764eeadf6adcc667b9817b1ad32496477476da0b982d4fc0744b40ef";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
dask
|
|
holoviews
|
|
jinja2
|
|
msgpack-numpy
|
|
msgpack-python
|
|
numpy
|
|
pandas
|
|
python-snappy
|
|
requests
|
|
ruamel_yaml
|
|
six
|
|
tornado
|
|
];
|
|
|
|
checkPhase = ''
|
|
# single test assumes python for executable name
|
|
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest --ignore=intake/catalog/tests/test_default.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Data load and catalog system";
|
|
homepage = https://github.com/ContinuumIO/intake;
|
|
license = licenses.bsd2;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|