Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / datashader / default.nix
blob899da93bfc5d4f17a73b76e0ec0875a65f9df760
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , dask
5 , bokeh
6 , toolz
7 , datashape
8 , numba
9 , numpy
10 , pandas
11 , pillow
12 , xarray
13 , colorcet
14 , param
15 , pyct
16 , scipy
17 , pytestCheckHook
18 , pythonOlder
19 , nbsmoke
20 , fastparquet
21 , nbconvert
22 , pytest-xdist
23 , netcdf4
26 buildPythonPackage rec {
27   pname = "datashader";
28   version = "0.16.0";
29   format = "setuptools";
31   disabled = pythonOlder "3.7";
33   src = fetchPypi {
34     inherit pname version;
35     hash = "sha256-7UwRGVdXjcs/z/ly2VT3dYba/XGnNF/VzQadn7BQ0NE=";
36   };
38   propagatedBuildInputs = [
39     dask
40     bokeh
41     toolz
42     datashape
43     numba
44     numpy
45     pandas
46     pillow
47     xarray
48     colorcet
49     param
50     pyct
51     scipy
52   ] ++ dask.optional-dependencies.complete;
54   nativeCheckInputs = [
55     pytestCheckHook
56     pytest-xdist
57     nbsmoke
58     fastparquet
59     nbconvert
60     netcdf4
61   ];
63   # The complete extra is for usage with conda, which we
64   # don't care about
65   postPatch = ''
66     substituteInPlace setup.py \
67       --replace "dask[complete]" "dask" \
68       --replace "xarray >=0.9.6" "xarray"
69   '';
71   preCheck = ''
72     export HOME=$TMPDIR
73   '';
75   pytestFlagsArray = [
76     "datashader"
77   ];
79   disabledTests = [
80     # Not compatible with current version of bokeh
81     # see: https://github.com/holoviz/datashader/issues/1031
82     "test_interactive_image_update"
83     # Latest dask broken array marshalling
84     # see: https://github.com/holoviz/datashader/issues/1032
85     "test_raster_quadmesh_autorange_reversed"
86   ];
88   disabledTestPaths = [
89     # 31/50 tests fail with TypeErrors
90     "datashader/tests/test_datatypes.py"
91   ];
93   pythonImportsCheck = [
94     "datashader"
95   ];
97   meta = with lib;{
98     description = "Data visualization toolchain based on aggregating into a grid";
99     mainProgram = "datashader";
100     homepage = "https://datashader.org";
101     license = licenses.bsd3;
102     maintainers = with maintainers; [ ];
103   };