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