forked from mirrors/nixpkgs
69d1e62b36
Also the following related changes: * Removed Python 2 support because it's not supported by TF and related packages for a long time. * Upgraded tensorboard and estimator packages to the required versions. * Added extra plugins for tensorboard to support profiling. * In the previous derivation versions, TF_SYSTEM_LIBS didn't have any effect because it was reset at repo fetching stage, so TF always used its own dependencies. Made TF_SYSTEM_LIBS actually work and fixed the errors caused by enabling it. * Enabled tensorboard by default (but still keeping an option to disable it if needed).
32 lines
608 B
Nix
32 lines
608 B
Nix
{ lib, fetchPypi, buildPythonPackage
|
|
, gviz-api
|
|
, protobuf
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tensorboard_plugin_profile";
|
|
version = "2.4.0";
|
|
format = "wheel";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
format = "wheel";
|
|
python = "py3";
|
|
sha256 = "0z6dcjvkk3pzmmmjxi2ybawnfshz5qa3ga92kqj69ld1g9k3i9bj";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
gviz-api
|
|
protobuf
|
|
werkzeug
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Profile Tensorboard Plugin.";
|
|
homepage = http://tensorflow.org;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ndl ];
|
|
};
|
|
}
|