2019-11-20 23:07:42 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
2017-09-05 16:12:59 +01:00
|
|
|
, numpy
|
2019-11-20 23:07:42 +00:00
|
|
|
, wheel
|
2017-09-05 16:12:59 +01:00
|
|
|
, werkzeug
|
|
|
|
, protobuf
|
2018-06-07 12:29:58 +01:00
|
|
|
, grpcio
|
2017-09-05 16:12:59 +01:00
|
|
|
, markdown
|
2019-02-28 10:57:43 +00:00
|
|
|
, absl-py
|
2019-11-19 21:45:06 +00:00
|
|
|
, google-auth-oauthlib
|
2021-01-10 10:50:33 +00:00
|
|
|
, tensorboard-plugin-wit
|
|
|
|
, tensorboard-plugin-profile
|
2017-09-05 16:12:59 +01:00
|
|
|
}:
|
|
|
|
|
2018-06-07 12:29:58 +01:00
|
|
|
# tensorflow/tensorboard is built from a downloaded wheel, because
|
|
|
|
# https://github.com/tensorflow/tensorboard/issues/719 blocks
|
|
|
|
# buildBazelPackage.
|
2017-09-05 16:12:59 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tensorflow-tensorboard";
|
2021-01-10 10:50:33 +00:00
|
|
|
version = "2.4.0";
|
2017-09-05 16:12:59 +01:00
|
|
|
format = "wheel";
|
2021-01-10 10:50:33 +00:00
|
|
|
disabled = !isPy3k;
|
2017-09-05 16:12:59 +01:00
|
|
|
|
2021-01-10 10:50:33 +00:00
|
|
|
src = fetchPypi {
|
2018-06-07 12:29:58 +01:00
|
|
|
pname = "tensorboard";
|
2021-01-04 16:41:32 +00:00
|
|
|
inherit version format;
|
2017-09-05 16:12:59 +01:00
|
|
|
python = "py3";
|
2021-01-10 10:50:33 +00:00
|
|
|
sha256 = "0f17h6i398n8maam0r3rssqvdqnqbwjyf96nnhf482anm1iwdq6d";
|
|
|
|
};
|
2017-09-05 16:12:59 +01:00
|
|
|
|
2019-03-04 13:08:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
werkzeug
|
|
|
|
protobuf
|
|
|
|
markdown
|
2019-11-20 23:07:42 +00:00
|
|
|
grpcio
|
|
|
|
absl-py
|
2019-11-19 21:45:06 +00:00
|
|
|
google-auth-oauthlib
|
2021-01-10 10:50:33 +00:00
|
|
|
tensorboard-plugin-profile
|
|
|
|
tensorboard-plugin-wit
|
2019-11-20 23:07:42 +00:00
|
|
|
# not declared in install_requires, but used at runtime
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/73840
|
|
|
|
wheel
|
2021-01-10 10:50:33 +00:00
|
|
|
];
|
2017-09-05 16:12:59 +01:00
|
|
|
|
2019-11-20 23:07:42 +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; {
|
2017-11-10 17:40:30 +00:00
|
|
|
description = "TensorFlow's Visualization Toolkit";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://tensorflow.org";
|
2017-09-05 16:12:59 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|