1{ lib
2, buildPythonPackage
3, fetchPypi
4, appdirs
5, dask
6, holoviews
7, hvplot
8, jinja2
9, msgpack
10, msgpack-numpy
11, numpy
12, pandas
13, panel
14, pyarrow
15, pytestCheckHook
16, pythonOlder
17, python-snappy
18, requests
19, ruamel_yaml
20, six
21, tornado
22}:
23
24buildPythonPackage rec {
25 pname = "intake";
26 version = "0.6.2";
27 disabled = pythonOlder "3.6";
28
29 src = fetchPypi {
30 inherit pname version;
31 sha256 = "b0cab1d185a703acb38eecb9cff3edd5cc7004fe18a36d5e42a8f7fffc9cca1c";
32 };
33
34 propagatedBuildInputs = [
35 appdirs
36 dask
37 holoviews
38 hvplot
39 jinja2
40 msgpack-numpy
41 msgpack
42 numpy
43 pandas
44 panel
45 python-snappy
46 requests
47 ruamel_yaml
48 six
49 tornado
50 ];
51
52 checkInputs = [ pyarrow pytestCheckHook ];
53
54 postPatch = ''
55 # Is in setup_requires but not used in setup.py...
56 substituteInPlace setup.py --replace "'pytest-runner'" ""
57 '';
58
59 # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
60 # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
61 preCheck = ''
62 HOME=$TMPDIR
63 PATH=$out/bin:$PATH
64 '';
65
66 disabledTests = [
67 # disable tests which touch network
68 "test_discover"
69 "test_filtered_compressed_cache"
70 "test_get_dir"
71 "test_remote_cat"
72 "http"
73
74 # broken test
75 "test_read_pattern"
76 ];
77
78 meta = with lib; {
79 description = "Data load and catalog system";
80 homepage = "https://github.com/ContinuumIO/intake";
81 license = licenses.bsd2;
82 maintainers = [ maintainers.costrouc ];
83 };
84}