From 76c4c042d68caa3a9345d7e39de72b690cd3020c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 30 Dec 2025 05:40:15 +0000 Subject: [PATCH 1/2] python3Packages.itables: 2.5.2 -> 2.6.2 --- pkgs/development/python-modules/itables/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/itables/default.nix b/pkgs/development/python-modules/itables/default.nix index b87be0bbb575..88914dd71cb0 100644 --- a/pkgs/development/python-modules/itables/default.nix +++ b/pkgs/development/python-modules/itables/default.nix @@ -22,7 +22,7 @@ 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 +30,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; From 6b77894026bee757695159982a53ad608058395f Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 31 Dec 2025 12:20:03 +0200 Subject: [PATCH 2/2] python3Packages.itables: use optional-dependencies upstream dropped its unconditional dependencies on ipython, numpy and pandas. See https://github.com/mwouts/itables/issues/457 --- .../python-modules/itables/default.nix | 54 ++++++++++++++++--- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/itables/default.nix b/pkgs/development/python-modules/itables/default.nix index 88914dd71cb0..c13f8bf76de9 100644 --- a/pkgs/development/python-modules/itables/default.nix +++ b/pkgs/development/python-modules/itables/default.nix @@ -14,10 +14,19 @@ # nativeBuildInputs nodejs, - # dependencies + # optional-dependencies ipython, numpy, pandas, + polars, + narwhals, + matplotlib, + anywidget, + traitlets, + streamlit, + marimo, + pyarrow, + typing-extensions, }: buildPythonPackage rec { @@ -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;