1{ stdenv, buildPythonPackage , fetchPypi
2, pytest, jupyter_core, pandas, ipywidgets }:
3
4buildPythonPackage rec {
5 pname = "vega";
6 version = "2.6.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "c66354d6d164cc3d7254bcd129d8d861daf4a9e9cb8738b1724791777f6c29f0";
11 };
12
13 buildInputs = [ pytest ];
14 propagatedBuildInputs = [ jupyter_core pandas ipywidgets ];
15
16 meta = with stdenv.lib; {
17 description = "An IPython/Jupyter widget for Vega and Vega-Lite";
18 longDescription = ''
19 To use this you have to enter a nix-shell with vega. Then run:
20
21 jupyter nbextension install --user --py vega
22 jupyter nbextension enable --user vega
23 '';
24 homepage = https://github.com/vega/ipyvega;
25 license = licenses.bsd3;
26 maintainers = with maintainers; [ teh ];
27 platforms = platforms.unix;
28 };
29}