Files
nixpkgs/pkgs/development/python-modules/datashader/default.nix
T

88 lines
1.3 KiB
Nix
Raw Normal View History

2019-07-14 17:30:37 -04: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:34:34 +02:00
, pytest_xdist
2019-07-14 17:30:37 -04:00
}:
buildPythonPackage rec {
pname = "datashader";
2020-06-02 18:34:34 +02:00
version = "0.11.0";
2019-07-14 17:30:37 -04:00
src = fetchPypi {
inherit pname version;
2020-06-02 18:34:34 +02:00
sha256 = "05p81aff7x70yj8llclclgz6klvfzqixwxfng6awn3y5scv18w40";
2019-07-14 17:30:37 -04: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:34:34 +02:00
pytest_xdist # not needed
2019-07-14 17:30:37 -04:00
flake8
nbsmoke
fastparquet
pandas
nbconvert
];
postConfigure = ''
substituteInPlace setup.py \
2020-06-02 18:34:34 +02:00
--replace "'numba >=0.37.0,<0.49'" "'numba'"
2019-07-14 17:30:37 -04:00
'';
checkPhase = ''
2020-06-02 18:34:34 +02:00
pytest -n $NIX_BUILD_CORES datashader
2019-07-14 17:30:37 -04:00
'';
meta = with lib; {
description = "Data visualization toolchain based on aggregating into a grid";
homepage = "https://datashader.org";
2019-07-14 17:30:37 -04:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}