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