Loading pkgs/development/python-modules/vegafusion/default.nix 0 → 100644 +101 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, rustPlatform, pytestCheckHook, # Deps arro3-core, protobuf, psutil, altair, ipywidgets, vl-convert-python, anywidget, polars, grpcio, pyarrow, # optional-dependencies duckdb, vega-datasets, scikit-image, jupytext, ipykernel, selenium, flaky, tenacity, }: buildPythonPackage rec { pname = "vegafusion"; version = "2.0.3"; pyproject = true; src = fetchFromGitHub { owner = "hex-inc"; repo = "vegafusion"; tag = "v${version}"; hash = "sha256-yiECw9WGd+03KFOWa+bwR10gQFqzx4Riy6uw2zwdc3s="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit src; name = "${pname}-${version}"; hash = "sha256-T/4k4ZWiO/AQvCxsbjyLMvV/zKq8ywy2rAQYMsJ73t4="; }; buildAndTestSubdir = "vegafusion-python"; buildInputs = [ protobuf ]; nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; dependencies = [ arro3-core psutil altair ipywidgets vl-convert-python anywidget polars grpcio pyarrow ]; optional-dependencies = { test = [ duckdb vega-datasets scikit-image jupytext ipykernel selenium flaky tenacity ]; }; pythonImportsCheck = [ "vegafusion" ]; nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.test; disabledTests = [ # Require network access "test_input_utc" "test_pretransform" "test_pretransform_specs" "test_transformed_data" # Relies on selenium's chromedriver_binary "test_jupyter_widget" ]; meta = with lib; { description = "Core tools for using VegaFusion from Python"; homepage = "https://github.com/hex-inc/vegafusion"; license = lib.licenses.bsd3; maintainers = with maintainers; [ wariuccio ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -20366,6 +20366,8 @@ self: super: with self; { vega-datasets = callPackage ../development/python-modules/vega-datasets { }; vegafusion = callPackage ../development/python-modules/vegafusion { }; vegehub = callPackage ../development/python-modules/vegehub { }; vehicle = callPackage ../development/python-modules/vehicle { }; Loading
pkgs/development/python-modules/vegafusion/default.nix 0 → 100644 +101 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, rustPlatform, pytestCheckHook, # Deps arro3-core, protobuf, psutil, altair, ipywidgets, vl-convert-python, anywidget, polars, grpcio, pyarrow, # optional-dependencies duckdb, vega-datasets, scikit-image, jupytext, ipykernel, selenium, flaky, tenacity, }: buildPythonPackage rec { pname = "vegafusion"; version = "2.0.3"; pyproject = true; src = fetchFromGitHub { owner = "hex-inc"; repo = "vegafusion"; tag = "v${version}"; hash = "sha256-yiECw9WGd+03KFOWa+bwR10gQFqzx4Riy6uw2zwdc3s="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit src; name = "${pname}-${version}"; hash = "sha256-T/4k4ZWiO/AQvCxsbjyLMvV/zKq8ywy2rAQYMsJ73t4="; }; buildAndTestSubdir = "vegafusion-python"; buildInputs = [ protobuf ]; nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; dependencies = [ arro3-core psutil altair ipywidgets vl-convert-python anywidget polars grpcio pyarrow ]; optional-dependencies = { test = [ duckdb vega-datasets scikit-image jupytext ipykernel selenium flaky tenacity ]; }; pythonImportsCheck = [ "vegafusion" ]; nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.test; disabledTests = [ # Require network access "test_input_utc" "test_pretransform" "test_pretransform_specs" "test_transformed_data" # Relies on selenium's chromedriver_binary "test_jupyter_widget" ]; meta = with lib; { description = "Core tools for using VegaFusion from Python"; homepage = "https://github.com/hex-inc/vegafusion"; license = lib.licenses.bsd3; maintainers = with maintainers; [ wariuccio ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -20366,6 +20366,8 @@ self: super: with self; { vega-datasets = callPackage ../development/python-modules/vega-datasets { }; vegafusion = callPackage ../development/python-modules/vegafusion { }; vegehub = callPackage ../development/python-modules/vegehub { }; vehicle = callPackage ../development/python-modules/vehicle { };