nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, dask
5, distributed
6, bokeh
7, toolz
8, datashape
9, numba
10, numpy
11, pandas
12, pillow
13, xarray
14, colorcet
15, param
16, pyct
17, pyyaml
18, requests
19, scikitimage
20, scipy
21, pytest
22, pytest-benchmark
23, flake8
24, nbsmoke
25, fastparquet
26, testpath
27, nbconvert
28, isPy38
29}:
30
31buildPythonPackage rec {
32 pname = "datashader";
33 version = "0.9.0";
34
35 src = fetchPypi {
36 inherit pname version;
37 sha256 = "3a423d61014ae8d2668848edab6c12a6244be6f249570bd7811dd5698d5ff633";
38 };
39
40 propagatedBuildInputs = [
41 dask
42 distributed
43 bokeh
44 toolz
45 datashape
46 numba
47 numpy
48 pandas
49 pillow
50 xarray
51 colorcet
52 param
53 pyct
54 pyyaml
55 requests
56 scikitimage
57 scipy
58 testpath
59 ];
60
61 checkInputs = [
62 pytest
63 pytest-benchmark
64 flake8
65 nbsmoke
66 fastparquet
67 pandas
68 nbconvert
69 ];
70
71 postConfigure = ''
72 substituteInPlace setup.py \
73 --replace "'testpath<0.4'" "'testpath'"
74 '';
75
76 checkPhase = ''
77 pytest datashader
78 '';
79
80 meta = with lib; {
81 description = "Data visualization toolchain based on aggregating into a grid";
82 homepage = https://datashader.org;
83 license = licenses.bsd3;
84 maintainers = [ maintainers.costrouc ];
85 broken = isPy38;
86 };
87}