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.0";
27
28 disabled = pythonOlder "3.6";
29
30 src = fetchPypi {
31 inherit pname version;
32 sha256 = "0c284abeb74927a7366dcab6cefc010c4d050365b8af61c37326a2473a490a4e";
33 };
34
35 propagatedBuildInputs = [
36 appdirs
37 dask
38 holoviews
39 hvplot
40 jinja2
41 msgpack-numpy
42 msgpack
43 numpy
44 pandas
45 panel
46 python-snappy
47 requests
48 ruamel_yaml
49 six
50 tornado
51 ];
52
53 checkInputs = [ pyarrow pytestCheckHook ];
54
55 postPatch = ''
56 # Is in setup_requires but not used in setup.py...
57 substituteInPlace setup.py --replace "'pytest-runner'" ""
58 '';
59
60 # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
61 # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
62 preCheck = ''
63 HOME=$TMPDIR
64 PATH=$out/bin:$PATH
65 '';
66
67 # disable tests which touch network
68 disabledTests = ''
69 "test_discover"
70 "test_filtered_compressed_cache"
71 "test_get_dir"
72 "test_remote_cat"
73 "http"
74 '';
75
76 meta = with lib; {
77 description = "Data load and catalog system";
78 homepage = "https://github.com/ContinuumIO/intake";
79 license = licenses.bsd2;
80 maintainers = [ maintainers.costrouc ];
81 };
82}