2017-11-10 18:40:30 +01:00
|
|
|
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k
|
2017-09-05 17:12:59 +02:00
|
|
|
, bleach_1_5_0
|
|
|
|
, numpy
|
|
|
|
, werkzeug
|
|
|
|
, protobuf
|
2018-06-07 13:29:58 +02:00
|
|
|
, grpcio
|
2017-09-05 17:12:59 +02:00
|
|
|
, markdown
|
2017-11-10 18:40:30 +01:00
|
|
|
, futures
|
2017-09-05 17:12:59 +02:00
|
|
|
}:
|
|
|
|
|
2018-06-07 13:29:58 +02:00
|
|
|
# tensorflow/tensorboard is built from a downloaded wheel, because
|
|
|
|
# https://github.com/tensorflow/tensorboard/issues/719 blocks
|
|
|
|
# buildBazelPackage.
|
2017-09-05 17:12:59 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tensorflow-tensorboard";
|
2018-06-07 13:29:58 +02:00
|
|
|
version = "1.7.0";
|
2017-09-05 17:12:59 +02:00
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
src = fetchPypi ({
|
2018-06-07 13:29:58 +02:00
|
|
|
pname = "tensorboard";
|
2017-09-05 17:12:59 +02:00
|
|
|
inherit version;
|
|
|
|
format = "wheel";
|
|
|
|
} // (if isPy3k then {
|
|
|
|
python = "py3";
|
2018-06-07 13:29:58 +02:00
|
|
|
sha256 = "1aa42rl3fkpllqch09d311gk1j281qry6nn07ywgbs6j0kwr6isc";
|
2017-09-05 17:12:59 +02:00
|
|
|
} else {
|
|
|
|
python = "py2";
|
2018-06-07 13:29:58 +02:00
|
|
|
sha256 = "1vcdkyvw22kpljmj4gxb8m1q54ry02iwvw54w8v8hmdigvc77a7k";
|
2017-09-05 17:12:59 +02:00
|
|
|
}));
|
|
|
|
|
2018-06-07 13:29:58 +02:00
|
|
|
propagatedBuildInputs = [ bleach_1_5_0 numpy werkzeug protobuf markdown grpcio ] ++ lib.optional (!isPy3k) futures;
|
2017-09-05 17:12:59 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 18:40:30 +01:00
|
|
|
description = "TensorFlow's Visualization Toolkit";
|
2017-09-05 17:12:59 +02:00
|
|
|
homepage = http://tensorflow.org;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|