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