python3Packages.tensorboard: fix build with setuptools 82

This commit is contained in:
Robert Schütz 2026-05-27 06:57:43 -07:00 committed by Martin Weinelt
commit 72e057ef7f

View file

@ -1,7 +1,9 @@
{
lib,
fetchpatch,
fetchPypi,
buildPythonPackage,
python,
# dependencies
absl-py,
@ -57,6 +59,26 @@ buildPythonPackage rec {
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"