depot/third_party/nixpkgs/pkgs/development/python-modules/intake/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

82 lines
1.5 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, appdirs
, dask
, holoviews
, hvplot
, jinja2
, msgpack
, msgpack-numpy
, numpy
, pandas
, panel
, pyarrow
, pytestCheckHook
, pythonOlder
, python-snappy
, requests
, ruamel_yaml
, six
, tornado
}:
buildPythonPackage rec {
pname = "intake";
version = "0.6.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0c284abeb74927a7366dcab6cefc010c4d050365b8af61c37326a2473a490a4e";
};
propagatedBuildInputs = [
appdirs
dask
holoviews
hvplot
jinja2
msgpack-numpy
msgpack
numpy
pandas
panel
python-snappy
requests
ruamel_yaml
six
tornado
];
checkInputs = [ pyarrow pytestCheckHook ];
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
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"
'';
meta = with lib; {
description = "Data load and catalog system";
homepage = "https://github.com/ContinuumIO/intake";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}