1{ lib
2, buildPythonPackage
3, fetchPypi
4, appdirs
5, dask
6, holoviews
7, hvplot
8, jinja2
9, msgpack-numpy
10, msgpack
11, numpy
12, pandas
13, panel
14, pyarrow
15, python-snappy
16, requests
17, ruamel_yaml
18, six
19, tornado
20, pytest
21, pythonOlder
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 checkInputs = [ pyarrow pytest ];
36 propagatedBuildInputs = [
37 appdirs
38 dask
39 holoviews
40 hvplot
41 jinja2
42 msgpack-numpy
43 msgpack
44 numpy
45 pandas
46 panel
47 python-snappy
48 requests
49 ruamel_yaml
50 six
51 tornado
52 ];
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 checkPhase = ''
62 PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_discover and not test_filtered_compressed_cache"
63 '';
64
65 meta = with lib; {
66 description = "Data load and catalog system";
67 homepage = "https://github.com/ContinuumIO/intake";
68 license = licenses.bsd2;
69 maintainers = [ maintainers.costrouc ];
70 };
71}