2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage , fetchPypi, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, jupyter-core, pandas, ipywidgets, jupyter }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vega";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "3.6.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-cO+7Ynbv/+uoNUOPQvDNZji04llHUBlm95Cyfy+Ny80=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [ jupyter jupyter-core pandas ipywidgets ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# currently, recommonmark is broken on python3
|
|
|
|
doCheck = false;
|
2021-02-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "vega" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An IPython/Jupyter widget for Vega and Vega-Lite";
|
|
|
|
longDescription = ''
|
|
|
|
To use this you have to enter a nix-shell with vega. Then run:
|
|
|
|
|
|
|
|
jupyter nbextension install --user --py vega
|
|
|
|
jupyter nbextension enable --user vega
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/vega/ipyvega";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|