2017-11-10 17:40:30 +00:00
|
|
|
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k
|
2017-09-05 16:12:59 +01:00
|
|
|
, numpy
|
|
|
|
, werkzeug
|
|
|
|
, protobuf
|
2018-06-07 12:29:58 +01:00
|
|
|
, grpcio
|
2017-09-05 16:12:59 +01:00
|
|
|
, markdown
|
2017-11-10 17:40:30 +00:00
|
|
|
, futures
|
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";
|
2018-06-29 19:16:22 +01:00
|
|
|
version = "1.9.0";
|
2017-09-05 16:12:59 +01:00
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
src = fetchPypi ({
|
2018-06-07 12:29:58 +01:00
|
|
|
pname = "tensorboard";
|
2017-09-05 16:12:59 +01:00
|
|
|
inherit version;
|
|
|
|
format = "wheel";
|
|
|
|
} // (if isPy3k then {
|
|
|
|
python = "py3";
|
2018-06-29 19:16:22 +01:00
|
|
|
sha256 = "42a04637a636e16054b065907c81396b83a9702948ecd14218f19dc5cf85de98";
|
2017-09-05 16:12:59 +01:00
|
|
|
} else {
|
|
|
|
python = "py2";
|
2018-06-29 19:16:22 +01:00
|
|
|
sha256 = "97661706fbe857c372405e0f5bd7c3db2197b5e70cec88f6924b726fde65c2c1";
|
2017-09-05 16:12:59 +01:00
|
|
|
}));
|
|
|
|
|
2018-06-29 19:16:22 +01:00
|
|
|
propagatedBuildInputs = [ numpy werkzeug protobuf markdown grpcio ] ++ lib.optional (!isPy3k) futures;
|
2017-09-05 16:12:59 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 17:40:30 +00:00
|
|
|
description = "TensorFlow's Visualization Toolkit";
|
2017-09-05 16:12:59 +01:00
|
|
|
homepage = http://tensorflow.org;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|