diff --git a/pkgs/development/python-modules/itables/default.nix b/pkgs/development/python-modules/itables/default.nix index b87be0bbb575..c13f8bf76de9 100644 --- a/pkgs/development/python-modules/itables/default.nix +++ b/pkgs/development/python-modules/itables/default.nix @@ -14,15 +14,24 @@ # nativeBuildInputs nodejs, - # dependencies + # optional-dependencies ipython, numpy, pandas, + polars, + narwhals, + matplotlib, + anywidget, + traitlets, + streamlit, + marimo, + pyarrow, + typing-extensions, }: buildPythonPackage rec { pname = "itables"; - version = "2.5.2"; + version = "2.6.2"; # itables has 4 different node packages, each with their own # package-lock.json, and partially depending on each other. @@ -30,7 +39,7 @@ buildPythonPackage rec { # the source tarball from pypi, which includes the javascript bundle already. src = fetchPypi { inherit pname version; - hash = "sha256-7DS7rPv0MFVw6nWzaXDeRC+SQSbzcBwyOlpGAY3oTIo="; + hash = "sha256-P3PzBBB022Q3+9L3Loq18kyWhXB2JcCF/3FwHUPkxi8="; }; pyproject = true; @@ -47,11 +56,44 @@ buildPythonPackage rec { nodejs ]; - dependencies = [ - ipython - numpy - pandas - ]; + # shiny and modin omitted due to missing deps + optional-dependencies = { + all = [ + pandas + polars + narwhals + matplotlib + ipython + anywidget + traitlets + dash + streamlit + marimo + pyarrow + ]; + pandas = [ pandas ]; + polars = [ polars ]; + narwhals = [ narwhals ]; + style = [ + pandas + matplotlib + ]; + notebook = [ ipython ]; + widget = [ + anywidget + traitlets + ]; + dash = [ + dash + typing-extensions + ]; + streamlit = [ streamlit ]; + marimo = [ marimo ]; + other_dataframes = [ + narwhals + pyarrow + ]; + }; # no tests in pypi tarball doCheck = false;