aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/tensorboardx/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tensorboardx/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/tensorboardx/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tensorboardx/default.nix b/nixpkgs/pkgs/development/python-modules/tensorboardx/default.nix
new file mode 100644
index 00000000000..d2532777d00
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/tensorboardx/default.nix
@@ -0,0 +1,31 @@
+{ boto3, buildPythonPackage, crc32c, fetchFromGitHub, lib, matplotlib, moto
+, numpy, pillow, pytorch, protobuf, six, pytestCheckHook
+, tensorflow-tensorboard, torchvision }:
+
+buildPythonPackage rec {
+ pname = "tensorboardx";
+ version = "2.0";
+
+ src = fetchFromGitHub {
+ owner = "lanpa";
+ repo = "tensorboardX";
+ rev = "v${version}";
+ sha256 = "0qqalq0fhbx0wnd8wdwhyhkkv2brvj9qbk3373vk3wjxbribf5c7";
+ };
+
+ checkInputs = [
+ pytestCheckHook boto3 crc32c matplotlib moto pillow pytorch tensorflow-tensorboard torchvision
+ ];
+
+ propagatedBuildInputs = [ numpy protobuf six ];
+
+ disabledTests = [ "test_TorchVis" "test_onnx_graph" ];
+
+ meta = with lib; {
+ description = "Library for writing tensorboard-compatible logs";
+ homepage = "https://github.com/lanpa/tensorboardX";
+ license = licenses.mit;
+ maintainers = with maintainers; [ lebastr akamaus ];
+ platforms = platforms.all;
+ };
+}