python3Packages.datashader: relax xarray constraint

main
Fabian Affolter 2 years ago
parent 2dedc1eaa4
commit e618a4d3ed
  1. 28
      pkgs/development/python-modules/datashader/default.nix

@ -25,19 +25,13 @@
buildPythonPackage rec {
pname = "datashader";
version = "0.13.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-6JscHm1QjDmXOLLa83qhAvY/xwvlPM6duQ1lSxnCVV8=";
};
# the complete extra is for usage with conda, which we
# don't care about
postPatch = ''
substituteInPlace setup.py \
--replace "dask[complete]" "dask"
'';
propagatedBuildInputs = [
dask
bokeh
@ -56,13 +50,21 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
pytest-xdist # not needed
pytest-xdist
nbsmoke
fastparquet
nbconvert
netcdf4
];
# 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"
'';
preCheck = ''
export HOME=$TMPDIR
'';
@ -73,10 +75,10 @@ buildPythonPackage rec {
];
disabledTests = [
# not compatible with current version of bokeh
# Not compatible with current version of bokeh
# see: https://github.com/holoviz/datashader/issues/1031
"test_interactive_image_update"
# latest dask broken array marshalling
# Latest dask broken array marshalling
# see: https://github.com/holoviz/datashader/issues/1032
"test_raster_quadmesh_autorange_reversed"
];
@ -86,10 +88,14 @@ buildPythonPackage rec {
"datashader/tests/test_datatypes.py"
];
pythonImportsCheck = [
"datashader"
];
meta = with lib;{
description = "Data visualization toolchain based on aggregating into a grid";
homepage = "https://datashader.org";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

Loading…
Cancel
Save