2019-07-14 22:30:37 +01: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 17:34:34 +01:00
|
|
|
, pytest_xdist
|
2019-07-14 22:30:37 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datashader";
|
2020-08-29 12:41:48 +01:00
|
|
|
version = "0.11.1";
|
2019-07-14 22:30:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-29 12:41:48 +01:00
|
|
|
sha256 = "b1f80415f72f92ccb660aaea7b2881ddd35d07254f7c44101709d42e819d6be6";
|
2019-07-14 22:30:37 +01: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 17:34:34 +01:00
|
|
|
pytest_xdist # not needed
|
2019-07-14 22:30:37 +01:00
|
|
|
flake8
|
|
|
|
nbsmoke
|
|
|
|
fastparquet
|
|
|
|
pandas
|
|
|
|
nbconvert
|
|
|
|
];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
2020-06-02 17:34:34 +01:00
|
|
|
--replace "'numba >=0.37.0,<0.49'" "'numba'"
|
2019-07-14 22:30:37 +01:00
|
|
|
'';
|
|
|
|
|
2020-10-04 21:37:33 +01:00
|
|
|
# dask doesn't do well with large core counts
|
2019-07-14 22:30:37 +01:00
|
|
|
checkPhase = ''
|
2020-10-04 21:37:33 +01:00
|
|
|
pytest -n $NIX_BUILD_CORES datashader -k 'not dask.array'
|
2019-07-14 22:30:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data visualization toolchain based on aggregating into a grid";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://datashader.org";
|
2019-07-14 22:30:37 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|