Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / datashader / default.nix
blobb110ba702daf8caaded1ad809737e322c6ad9ee6
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.15.2";
29   format = "setuptools";
31   disabled = pythonOlder "3.7";
33   src = fetchPypi {
34     inherit pname version;
35     hash = "sha256-lTlSk3kofWnBDpq04LKQDhoWAE1v8G3g2EqmLEgzsbs=";
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     homepage = "https://datashader.org";
100     license = licenses.bsd3;
101     maintainers = with maintainers; [ ];
102   };