mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.tensorboard: fix build with setuptools 82
This commit is contained in:
parent
27e7bd6122
commit
72e057ef7f
1 changed files with 22 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue