From eb5d7bcce44f719f984b8c12d104ddcb2b9a895e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 20:45:14 +0000 Subject: [PATCH 1/2] python3Packages.tensorboard: 2.20.0 -> 2.21.0 Diff: https://github.com/tensorflow/tensorboard/compare/2.20.0...2.21.0 Changelog: https://github.com/tensorflow/tensorboard/releases/tag/2.21.0 --- .../python-modules/tensorboard/default.nix | 49 ++++--------------- 1 file changed, 9 insertions(+), 40 deletions(-) diff --git a/pkgs/development/python-modules/tensorboard/default.nix b/pkgs/development/python-modules/tensorboard/default.nix index 80df6401b747..dd3a41e80a14 100644 --- a/pkgs/development/python-modules/tensorboard/default.nix +++ b/pkgs/development/python-modules/tensorboard/default.nix @@ -1,9 +1,7 @@ { lib, - fetchpatch, fetchPypi, buildPythonPackage, - python, # dependencies absl-py, @@ -16,31 +14,27 @@ setuptools, tensorboard-data-server, werkzeug, - standard-imghdr, + # tests versionCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "tensorboard"; - version = "2.20.0"; + version = "2.21.0"; format = "wheel"; + __structuredAttrs = true; # tensorflow/tensorboard is built from a downloaded wheel, because # https://github.com/tensorflow/tensorboard/issues/719 blocks buildBazelPackage. src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; format = "wheel"; dist = "py3"; python = "py3"; - hash = "sha256-ncn5eMuEwHI6z5o0XZbBhPApPRjxZruNWe4Jjmz6q6Y="; + hash = "sha256-cnkxbctr1bw5HWI96oQVMSmc3hiHMQ6BM7w0qZbTIlU="; }; - pythonRelaxDeps = [ - "google-auth-oauthlib" - "protobuf" - ]; - dependencies = [ absl-py grpcio @@ -52,33 +46,8 @@ buildPythonPackage rec { setuptools tensorboard-data-server werkzeug - - # Requires 'imghdr' which has been removed from python in 3.13 - # ModuleNotFoundError: No module named 'imghdr' - # https://github.com/tensorflow/tensorboard/issues/6964 - standard-imghdr ]; - postInstall = - let - patch = fetchpatch { - name = "remove-runtime-pkg_resources-dependency.patch"; - url = "https://github.com/tensorflow/tensorboard/commit/29f809f4737489912612635d9079a61f8e570bb8.patch"; - excludes = [ - "tensorboard/BUILD" - "tensorboard/data/BUILD" - "tensorboard/default_test.py" - "tensorboard/version_test.py" - ]; - hash = "sha256-+jaXI4fVQP4mOg6y94KPMMCg3XuHV/gBUDNsp3ogS6c="; - }; - in - '' - pushd $out/${python.sitePackages} - patch -p1 < ${patch} - popd - ''; - pythonImportsCheck = [ "tensorboard" "tensorboard.backend" @@ -94,12 +63,12 @@ buildPythonPackage rec { ]; meta = { - changelog = "https://github.com/tensorflow/tensorboard/blob/${version}/RELEASE.md"; description = "TensorFlow's Visualization Toolkit"; - homepage = "https://www.tensorflow.org/"; + homepage = "https://github.com/tensorflow/tensorboard"; + changelog = "https://github.com/tensorflow/tensorboard/blob/${finalAttrs.version}/RELEASE.md"; license = lib.licenses.asl20; mainProgram = "tensorboard"; maintainers = [ ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; }; -} +}) From 95569f23bd94c97083ce3c60e6083c6d0a8660ff Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 20:46:54 +0000 Subject: [PATCH 2/2] python3Packages.tensorboard: add GaetanLepage to maintainers --- pkgs/development/python-modules/tensorboard/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tensorboard/default.nix b/pkgs/development/python-modules/tensorboard/default.nix index dd3a41e80a14..8349ba6df644 100644 --- a/pkgs/development/python-modules/tensorboard/default.nix +++ b/pkgs/development/python-modules/tensorboard/default.nix @@ -68,7 +68,9 @@ buildPythonPackage (finalAttrs: { changelog = "https://github.com/tensorflow/tensorboard/blob/${finalAttrs.version}/RELEASE.md"; license = lib.licenses.asl20; mainProgram = "tensorboard"; - maintainers = [ ]; + maintainers = with lib.maintainers; [ + GaetanLepage + ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; }; })