2019-11-20 23:07:42 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
2017-09-05 15:12:59 +00:00
|
|
|
, numpy
|
2019-11-20 23:07:42 +00:00
|
|
|
, wheel
|
2017-09-05 15:12:59 +00:00
|
|
|
, werkzeug
|
|
|
|
, protobuf
|
2018-06-07 11:29:58 +00:00
|
|
|
, grpcio
|
2017-09-05 15:12:59 +00:00
|
|
|
, markdown
|
2017-11-10 17:40:30 +00:00
|
|
|
, futures
|
2019-02-28 10:57:43 +00:00
|
|
|
, absl-py
|
2017-09-05 15:12:59 +00:00
|
|
|
}:
|
|
|
|
|
2018-06-07 11:29:58 +00:00
|
|
|
# tensorflow/tensorboard is built from a downloaded wheel, because
|
|
|
|
# https://github.com/tensorflow/tensorboard/issues/719 blocks
|
|
|
|
# buildBazelPackage.
|
2017-09-05 15:12:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tensorflow-tensorboard";
|
2019-10-07 08:14:16 +00:00
|
|
|
version = "1.15.0";
|
2017-09-05 15:12:59 +00:00
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
src = fetchPypi ({
|
2018-06-07 11:29:58 +00:00
|
|
|
pname = "tensorboard";
|
2017-09-05 15:12:59 +00:00
|
|
|
inherit version;
|
|
|
|
format = "wheel";
|
|
|
|
} // (if isPy3k then {
|
|
|
|
python = "py3";
|
2019-10-07 08:14:16 +00:00
|
|
|
sha256 = "1g62i3nrgp8q9wfsyqqjkkfnsz7x2k018c26kdh527h1yrjjrbac";
|
2017-09-05 15:12:59 +00:00
|
|
|
} else {
|
|
|
|
python = "py2";
|
2019-10-07 08:14:16 +00:00
|
|
|
sha256 = "0l3zc8j2sh7h1z4qpy8kfvclv3kzndri55p10i42q6xahs9phav1";
|
2017-09-05 15:12:59 +00: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
|
|
|
|
# not declared in install_requires, but used at runtime
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/73840
|
|
|
|
wheel
|
2019-03-04 13:08:55 +00:00
|
|
|
] ++ lib.optional (!isPy3k) futures;
|
2017-09-05 15:12:59 +00: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";
|
2017-09-05 15:12:59 +00:00
|
|
|
homepage = http://tensorflow.org;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|