1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{
lib,
fetchPypi,
buildPythonPackage,
# dependencies
absl-py,
grpcio,
markdown,
numpy,
packaging,
pillow,
protobuf,
setuptools,
tensorboard-data-server,
werkzeug,
standard-imghdr,
versionCheckHook,
}:
buildPythonPackage rec {
pname = "tensorboard";
version = "2.20.0";
format = "wheel";
# tensorflow/tensorboard is built from a downloaded wheel, because
# https://github.com/tensorflow/tensorboard/issues/719 blocks buildBazelPackage.
src = fetchPypi {
inherit pname version;
format = "wheel";
dist = "py3";
python = "py3";
hash = "sha256-ncn5eMuEwHI6z5o0XZbBhPApPRjxZruNWe4Jjmz6q6Y=";
};
pythonRelaxDeps = [
"google-auth-oauthlib"
"protobuf"
];
dependencies = [
absl-py
grpcio
markdown
numpy
packaging
pillow
protobuf
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
];
pythonImportsCheck = [
"tensorboard"
"tensorboard.backend"
"tensorboard.compat"
"tensorboard.data"
"tensorboard.plugins"
"tensorboard.summary"
"tensorboard.util"
];
nativeCheckInputs = [
versionCheckHook
];
meta = {
changelog = "https://github.com/tensorflow/tensorboard/blob/${version}/RELEASE.md";
description = "TensorFlow's Visualization Toolkit";
homepage = "https://www.tensorflow.org/";
license = lib.licenses.asl20;
mainProgram = "tensorboard";
maintainers = [ ];
};
}
|