2019-07-14 22:30:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dask
|
|
|
|
, bokeh
|
|
|
|
, toolz
|
|
|
|
, datashape
|
|
|
|
, numba
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, xarray
|
|
|
|
, colorcet
|
|
|
|
, param
|
|
|
|
, pyct
|
|
|
|
, scipy
|
2021-03-07 19:37:13 +00:00
|
|
|
, pytestCheckHook
|
2019-07-14 22:30:37 +01:00
|
|
|
, nbsmoke
|
|
|
|
, fastparquet
|
|
|
|
, nbconvert
|
2021-03-07 19:37:13 +00:00
|
|
|
, pytest-xdist
|
2021-03-07 20:33:28 +00:00
|
|
|
, netcdf4
|
2019-07-14 22:30:37 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datashader";
|
2021-03-17 05:27:55 +00:00
|
|
|
version = "0.12.1";
|
2019-07-14 22:30:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-17 05:27:55 +00:00
|
|
|
sha256 = "a135612876dc3e4b16ccb9ddb70de50519825c8c1be251b49aefa550bcf8a39a";
|
2019-07-14 22:30:37 +01:00
|
|
|
};
|
2021-03-07 19:37:13 +00:00
|
|
|
|
2019-07-14 22:30:37 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dask
|
|
|
|
bokeh
|
|
|
|
toolz
|
|
|
|
datashape
|
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
xarray
|
|
|
|
colorcet
|
|
|
|
param
|
|
|
|
pyct
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-03-07 19:37:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist # not needed
|
2019-07-14 22:30:37 +01:00
|
|
|
nbsmoke
|
|
|
|
fastparquet
|
|
|
|
nbconvert
|
2021-03-07 20:33:28 +00:00
|
|
|
netcdf4
|
2019-07-14 22:30:37 +01:00
|
|
|
];
|
|
|
|
|
2021-03-07 19:37:13 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-n $NIX_BUILD_CORES"
|
|
|
|
"datashader"
|
|
|
|
];
|
2019-07-14 22:30:37 +01:00
|
|
|
|
2021-03-07 20:33:28 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# 31/50 tests fail with TypeErrors
|
|
|
|
"datashader/tests/test_datatypes.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib;{
|
2019-07-14 22:30:37 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|