2017-11-10 17:40:30 +00:00
|
|
|
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k
|
2017-09-05 16:12:59 +01:00
|
|
|
, bleach_1_5_0
|
|
|
|
, numpy
|
|
|
|
, werkzeug
|
|
|
|
, protobuf
|
|
|
|
, markdown
|
2017-11-10 17:40:30 +00:00
|
|
|
, futures
|
2017-09-05 16:12:59 +01:00
|
|
|
}:
|
|
|
|
|
2017-11-10 17:40:30 +00:00
|
|
|
# tensorflow 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";
|
2017-11-10 17:40:30 +00:00
|
|
|
version = "1.5.1";
|
2017-09-05 16:12:59 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
src = fetchPypi ({
|
|
|
|
pname = "tensorflow_tensorboard";
|
|
|
|
inherit version;
|
|
|
|
format = "wheel";
|
|
|
|
} // (if isPy3k then {
|
|
|
|
python = "py3";
|
2017-11-10 17:40:30 +00:00
|
|
|
sha256 = "1cydgvrr0s05xqz1v9z2wdiv60gzbs8wv9wvbflw5700a2llb63l";
|
2017-09-05 16:12:59 +01:00
|
|
|
} else {
|
|
|
|
python = "py2";
|
2017-11-10 17:40:30 +00:00
|
|
|
sha256 = "0dhljddlirq6nr84zg4yrk5k69gj3x2abb6wg3crgrparb6qbya7";
|
2017-09-05 16:12:59 +01:00
|
|
|
}));
|
|
|
|
|
2017-11-10 17:40:30 +00:00
|
|
|
propagatedBuildInputs = [ bleach_1_5_0 numpy werkzeug protobuf markdown ] ++ 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 ];
|
|
|
|
};
|
|
|
|
}
|