2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, bokeh
|
|
|
|
, toolz
|
|
|
|
, datashape
|
|
|
|
, numba
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, xarray
|
|
|
|
, colorcet
|
|
|
|
, param
|
|
|
|
, pyct
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, scikitimage
|
|
|
|
, scipy
|
|
|
|
, pytest
|
|
|
|
, pytest-benchmark
|
|
|
|
, flake8
|
|
|
|
, nbsmoke
|
|
|
|
, fastparquet
|
|
|
|
, testpath
|
|
|
|
, nbconvert
|
2020-06-02 18:00:15 +00:00
|
|
|
, pytest_xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datashader";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.11.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "b1f80415f72f92ccb660aaea7b2881ddd35d07254f7c44101709d42e819d6be6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
bokeh
|
|
|
|
toolz
|
|
|
|
datashape
|
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
xarray
|
|
|
|
colorcet
|
|
|
|
param
|
|
|
|
pyct
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
scikitimage
|
|
|
|
scipy
|
|
|
|
testpath
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-benchmark
|
2020-06-02 18:00:15 +00:00
|
|
|
pytest_xdist # not needed
|
2020-04-24 23:36:52 +00:00
|
|
|
flake8
|
|
|
|
nbsmoke
|
|
|
|
fastparquet
|
|
|
|
pandas
|
|
|
|
nbconvert
|
|
|
|
];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
2020-06-02 18:00:15 +00:00
|
|
|
--replace "'numba >=0.37.0,<0.49'" "'numba'"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
# dask doesn't do well with large core counts
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2020-10-07 09:15:18 +00:00
|
|
|
pytest -n $NIX_BUILD_CORES datashader -k 'not dask.array'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data visualization toolchain based on aggregating into a grid";
|
|
|
|
homepage = "https://datashader.org";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|