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