at 23.05-pre 2.3 kB view raw
1{ lib 2, appdirs 3, bokeh 4, buildPythonPackage 5, dask 6, entrypoints 7, fetchFromGitHub 8, fsspec 9, hvplot 10, intake-parquet 11, jinja2 12, msgpack 13, msgpack-numpy 14, numpy 15, pandas 16, panel 17, pyarrow 18, pytestCheckHook 19, python-snappy 20, pythonOlder 21, pyyaml 22, requests 23, stdenv 24, tornado 25}: 26 27buildPythonPackage rec { 28 pname = "intake"; 29 version = "0.6.5"; 30 format = "setuptools"; 31 32 disabled = pythonOlder "3.7"; 33 34 src = fetchFromGitHub { 35 owner = pname; 36 repo = pname; 37 rev = version; 38 hash = "sha256-ABMXWUVptpOSPB1jQ57iXk/UG92puNCICzXo3ZMG2Pk="; 39 }; 40 41 propagatedBuildInputs = [ 42 appdirs 43 dask 44 entrypoints 45 fsspec 46 msgpack 47 jinja2 48 pandas 49 pyyaml 50 ]; 51 52 checkInputs = [ 53 intake-parquet 54 pytestCheckHook 55 ] ++ passthru.optional-dependencies.server; 56 57 passthru.optional-dependencies = { 58 server = [ 59 msgpack 60 python-snappy 61 tornado 62 ]; 63 dataframe = [ 64 msgpack-numpy 65 pyarrow 66 ]; 67 plot = [ 68 hvplot 69 bokeh 70 panel 71 ]; 72 remote = [ 73 requests 74 ]; 75 }; 76 77 postPatch = '' 78 substituteInPlace setup.py \ 79 --replace "'pytest-runner'" "" 80 ''; 81 82 preCheck = '' 83 export HOME=$(mktemp -d); 84 export PATH="$PATH:$out/bin"; 85 ''; 86 87 disabledTests = [ 88 # Disable tests which touch network 89 "http" 90 "test_dir" 91 "test_discover" 92 "test_filtered_compressed_cache" 93 "test_flatten_flag" 94 "test_get_dir" 95 "test_pagination" 96 "test_read_part_compressed" 97 "test_read_partition" 98 "test_read_pattern" 99 "test_remote_arr" 100 "test_remote_cat" 101 # ValueError 102 "test_mlist_parameter" 103 # ImportError 104 "test_dataframe" 105 "test_ndarray" 106 "test_python" 107 # Timing-based, flaky on darwin and possibly others 108 "TestServerV1Source.test_idle_timer" 109 ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [ 110 # Flaky with older low-res mtime on darwin < 10.13 (#143987) 111 "test_second_load_timestamp" 112 ]; 113 114 pythonImportsCheck = [ 115 "intake" 116 ]; 117 118 meta = with lib; { 119 description = "Data load and catalog system"; 120 homepage = "https://github.com/ContinuumIO/intake"; 121 license = licenses.bsd2; 122 maintainers = with maintainers; [ costrouc ]; 123 }; 124}