Unverified Commit f218f8ff authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.torch-tb-profiler: 0.3.1 -> 0.4.0 (#350261)

parents ff7d6849 74561ffe
Loading
Loading
Loading
Loading
+18 −12
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pandas,
  pytestCheckHook,
  torch,
  setuptools,
  tensorboard,
  torch,
  torchvision,
}:

let
  version = "0.3.1";
  version = "0.4.0";
  repo = fetchFromGitHub {
    owner = "pytorch";
    repo = "kineto";
    rev = "v${version}";
    hash = "sha256-Yg001XzOPDmz9wEP2b7Ggz/uU6x5PFzaaBeUBwWKFS0=";
    rev = "refs/tags/v${version}";
    hash = "sha256-nAtqGCv8q3Tati3NOGWWLb+gXdvO3qmECeC1WG2Mt3M=";
  };
in
buildPythonPackage rec {
buildPythonPackage {
  pname = "torch_tb_profiler";
  inherit version;
  format = "setuptools";
  pyproject = true;

  # See https://discourse.nixos.org/t/extracting-sub-directory-from-fetchgit-or-fetchurl-or-any-derivation/8830.
  src = "${repo}/tb_plugin";

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    pandas
    tensorboard
  ];
@@ -43,14 +45,18 @@ buildPythonPackage rec {
    "test_tensorboard_end2end"
    "test_tensorboard_with_path_prefix"
    "test_tensorboard_with_symlinks"
    "test_autograd_api"
    "test_profiler_api_with_record_shapes_memory_stack"
    "test_profiler_api_without_record_shapes_memory_stack"
    "test_profiler_api_without_step"
  ];

  pythonImportsCheck = [ "torch_tb_profiler" ];

  meta = with lib; {
  meta = {
    description = "PyTorch Profiler TensorBoard Plugin";
    homepage = "https://github.com/pytorch/kineto";
    license = licenses.bsd3;
    maintainers = with maintainers; [ samuela ];
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ samuela ];
  };
}