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, python-snappy
15, requests
16, ruamel_yaml
17, six
18, tornado
19, pytest
20, pythonOlder
21, isPy38
22}:
23
24buildPythonPackage rec {
25 pname = "intake";
26 version = "0.5.4";
27
28 disabled = pythonOlder "3.6";
29
30 src = fetchPypi {
31 inherit pname version;
32 sha256 = "81c3bdadbb81ec10c923b89e118c229d977a584ccbe27466f8fde41c0c274c3f";
33 };
34
35 checkInputs = [ 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 broken = true;
71 };
72}