2021-08-27 14:25:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, pythonRelaxDepsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, wheel
|
|
|
|
, werkzeug
|
|
|
|
, protobuf
|
|
|
|
, grpcio
|
|
|
|
, markdown
|
|
|
|
, absl-py
|
|
|
|
, google-auth-oauthlib
|
2021-08-27 14:25:00 +00:00
|
|
|
, setuptools
|
|
|
|
, tensorboard-data-server
|
2021-01-15 22:18:51 +00:00
|
|
|
, tensorboard-plugin-wit
|
|
|
|
, tensorboard-plugin-profile
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
# tensorflow/tensorboard is built from a downloaded wheel, because
|
|
|
|
# https://github.com/tensorflow/tensorboard/issues/719 blocks
|
|
|
|
# buildBazelPackage.
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "tensorboard";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.16.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
format = "wheel";
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
src = fetchPypi {
|
2022-04-15 01:41:22 +00:00
|
|
|
inherit pname version format;
|
2021-08-27 14:25:00 +00:00
|
|
|
dist = "py3";
|
2020-04-24 23:36:52 +00:00
|
|
|
python = "py3";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-nytOfa2GZnYVwOXNBy8eqEA/wDKimfAHLW90hVd1zEU=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"google-auth-oauthlib"
|
|
|
|
"protobuf"
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
absl-py
|
2021-08-27 14:25:00 +00:00
|
|
|
grpcio
|
2020-04-24 23:36:52 +00:00
|
|
|
google-auth-oauthlib
|
2021-08-27 14:25:00 +00:00
|
|
|
markdown
|
|
|
|
numpy
|
|
|
|
protobuf
|
|
|
|
setuptools
|
|
|
|
tensorboard-data-server
|
2021-01-15 22:18:51 +00:00
|
|
|
tensorboard-plugin-profile
|
|
|
|
tensorboard-plugin-wit
|
2021-08-27 14:25:00 +00:00
|
|
|
werkzeug
|
2020-04-24 23:36:52 +00:00
|
|
|
# not declared in install_requires, but used at runtime
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/73840
|
|
|
|
wheel
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# in the absence of a real test suite, run cli and imports
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/tensorboard --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"tensorboard"
|
|
|
|
"tensorboard.backend"
|
|
|
|
"tensorboard.compat"
|
|
|
|
"tensorboard.data"
|
|
|
|
"tensorboard.plugins"
|
|
|
|
"tensorboard.summary"
|
|
|
|
"tensorboard.util"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/tensorflow/tensorboard/blob/${version}/RELEASE.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "TensorFlow's Visualization Toolkit";
|
2021-08-27 14:25:00 +00:00
|
|
|
homepage = "https://www.tensorflow.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "tensorboard";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|