2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
dask,
|
|
|
|
bokeh,
|
|
|
|
toolz,
|
|
|
|
datashape,
|
|
|
|
numba,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
xarray,
|
|
|
|
colorcet,
|
|
|
|
param,
|
|
|
|
pyct,
|
|
|
|
scipy,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
nbsmoke,
|
|
|
|
fastparquet,
|
|
|
|
nbconvert,
|
|
|
|
pytest-xdist,
|
|
|
|
netcdf4,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datashader";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.16.1";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-Wy8d1Eje/OIG7MFumWD+k3jzIwfqH8sMKYwiwU9YyIE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dask
|
|
|
|
bokeh
|
|
|
|
toolz
|
|
|
|
datashape
|
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
xarray
|
|
|
|
colorcet
|
|
|
|
param
|
|
|
|
pyct
|
|
|
|
scipy
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ dask.optional-dependencies.complete;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
2022-01-07 04:07:37 +00:00
|
|
|
pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
nbsmoke
|
|
|
|
fastparquet
|
|
|
|
nbconvert
|
2021-03-09 03:18:52 +00:00
|
|
|
netcdf4
|
|
|
|
];
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
# The complete extra is for usage with conda, which we
|
|
|
|
# don't care about
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "dask[complete]" "dask" \
|
|
|
|
--replace "xarray >=0.9.6" "xarray"
|
|
|
|
'';
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "datashader" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
disabledTests = [
|
2022-01-07 04:07:37 +00:00
|
|
|
# Not compatible with current version of bokeh
|
2021-12-26 17:43:05 +00:00
|
|
|
# see: https://github.com/holoviz/datashader/issues/1031
|
|
|
|
"test_interactive_image_update"
|
2022-01-07 04:07:37 +00:00
|
|
|
# Latest dask broken array marshalling
|
2021-12-26 17:43:05 +00:00
|
|
|
# see: https://github.com/holoviz/datashader/issues/1032
|
|
|
|
"test_raster_quadmesh_autorange_reversed"
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# 31/50 tests fail with TypeErrors
|
|
|
|
"datashader/tests/test_datatypes.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "datashader" ];
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Data visualization toolchain based on aggregating into a grid";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "datashader";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://datashader.org";
|
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|