tmuxPlugins.catppucin: unstable-2024-05-16 -> 2.1.2 (#379030)
[NixPkgs.git] / pkgs / development / python-modules / torch-tb-profiler / default.nix
blob766baff5d3cc75527f07e9c0b1ab7933766a31b1
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pandas,
6   pytestCheckHook,
7   setuptools,
8   tensorboard,
9   torch,
10   torchvision,
12 let
13   version = "0.4.0";
14   repo = fetchFromGitHub {
15     owner = "pytorch";
16     repo = "kineto";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-nAtqGCv8q3Tati3NOGWWLb+gXdvO3qmECeC1WG2Mt3M=";
19   };
21 buildPythonPackage {
22   pname = "torch_tb_profiler";
23   inherit version;
24   pyproject = true;
26   # See https://discourse.nixos.org/t/extracting-sub-directory-from-fetchgit-or-fetchurl-or-any-derivation/8830.
27   src = "${repo}/tb_plugin";
29   build-system = [ setuptools ];
31   dependencies = [
32     pandas
33     tensorboard
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38     torch
39     torchvision
40   ];
42   disabledTests = [
43     # Tests that attempt to access the filesystem in naughty ways.
44     "test_profiler_api_without_gpu"
45     "test_tensorboard_end2end"
46     "test_tensorboard_with_path_prefix"
47     "test_tensorboard_with_symlinks"
48     "test_autograd_api"
49     "test_profiler_api_with_record_shapes_memory_stack"
50     "test_profiler_api_without_record_shapes_memory_stack"
51     "test_profiler_api_without_step"
52   ];
54   pythonImportsCheck = [ "torch_tb_profiler" ];
56   meta = {
57     description = "PyTorch Profiler TensorBoard Plugin";
58     homepage = "https://github.com/pytorch/kineto";
59     license = lib.licenses.bsd3;
60     maintainers = with lib.maintainers; [ samuela ];
61   };