13 repo = fetchFromGitHub {
17 hash = "sha256-Yg001XzOPDmz9wEP2b7Ggz/uU6x5PFzaaBeUBwWKFS0=";
20 buildPythonPackage rec {
21 pname = "torch_tb_profiler";
23 format = "setuptools";
25 # See https://discourse.nixos.org/t/extracting-sub-directory-from-fetchgit-or-fetchurl-or-any-derivation/8830.
26 src = "${repo}/tb_plugin";
28 propagatedBuildInputs = [ pandas tensorboard ];
30 checkInputs = [ pytestCheckHook torch torchvision ];
33 # Tests that attempt to access the filesystem in naughty ways.
34 "test_profiler_api_without_gpu"
35 "test_tensorboard_end2end"
36 "test_tensorboard_with_path_prefix"
37 "test_tensorboard_with_symlinks"
40 pythonImportsCheck = [ "torch_tb_profiler" ];
43 description = "PyTorch Profiler TensorBoard Plugin";
44 homepage = "https://github.com/pytorch/kineto";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ samuela ];