1{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k
2, numpy
3, werkzeug
4, protobuf
5, grpcio
6, markdown
7, futures
8, absl-py
9}:
10
11# tensorflow/tensorboard is built from a downloaded wheel, because
12# https://github.com/tensorflow/tensorboard/issues/719 blocks
13# buildBazelPackage.
14
15buildPythonPackage rec {
16 pname = "tensorflow-tensorboard";
17 version = "1.13.0";
18 format = "wheel";
19
20 src = fetchPypi ({
21 pname = "tensorboard";
22 inherit version;
23 format = "wheel";
24 } // (if isPy3k then {
25 python = "py3";
26 sha256 = "19ixs811ndx8qh72dif0ywjss3rv7pf1khsgg6rvfjb9nw8wgjc2";
27 } else {
28 python = "py2";
29 sha256 = "0qpv6jsf6jjvdl95qvarn006kfj5a99mq925d73xg4af50ssvkrf";
30 }));
31
32 propagatedBuildInputs = [
33 numpy
34 werkzeug
35 protobuf
36 markdown
37 grpcio absl-py
38 ] ++ lib.optional (!isPy3k) futures;
39
40 meta = with stdenv.lib; {
41 description = "TensorFlow's Visualization Toolkit";
42 homepage = http://tensorflow.org;
43 license = licenses.asl20;
44 maintainers = with maintainers; [ abbradar ];
45 };
46}