Unverified Commit 5da99b6e authored by Tristan Ross's avatar Tristan Ross Committed by GitHub
Browse files

pythonPackages.tt-smi: init at 3.0.30 (#444714)

parents 420c13e6 3ff4483a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ buildPythonPackage rec {
  postPatch = ''
    cd ../$sourceRoot
    cp --no-preserve=ownership,mode ../../Cargo.lock .
    sed -i '0,/version = /{s/version = "*.*.*"/version = "${version}"/g}' Cargo.toml
  '';

  nativeBuildInputs = with rustPlatform; [
+59 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
  distro,
  elasticsearch,
  pydantic,
  pyluwen,
  rich,
  textual,
  pre-commit,
  importlib-resources,
  tt-tools-common,
  tomli,
}:
buildPythonPackage rec {
  pname = "tt-smi";
  version = "3.0.30";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tenstorrent";
    repo = "tt-smi";
    tag = "v${version}";
    hash = "sha256-C6CfcS0H3rFew/Y1uhmzICdFp1UYU7H9h3YPeAKlcbE=";
  };

  disabled = pythonOlder "3.13";

  build-system = [
    setuptools
  ];

  dependencies = [
    distro
    elasticsearch
    pydantic
    pyluwen
    rich
    textual
    pre-commit
    importlib-resources
    tt-tools-common
    setuptools
    tomli
  ];

  # Fails due to having no tests
  dontUsePytestCheck = true;

  meta = {
    description = "Tenstorrent console based hardware information program";
    homepage = "https://github.com/tenstorrent/tt-smi";
    maintainers = with lib.maintainers; [ RossComputerGuy ];
    license = with lib.licenses; [ asl20 ];
  };
}
+4 −2
Original line number Diff line number Diff line
@@ -13,21 +13,23 @@
  requests,
  tqdm,
  pydantic,
  setuptools-scm,
}:
buildPythonPackage rec {
  pname = "tt-tools-common";
  version = "1.4.25";
  version = "1.4.28";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tenstorrent";
    repo = "tt-tools-common";
    tag = "v${version}";
    hash = "sha256-phal8KxfQqsGAIcKQTlSPZB04J158jZYlyamZr45vdU=";
    hash = "sha256-L7MYrzQXb0LakQCx5CMlgTo0EjBoLLKC8u38eXksvoo=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
+2 −0
Original line number Diff line number Diff line
@@ -18833,6 +18833,8 @@ self: super: with self; {
  tt-flash = callPackage ../development/python-modules/tt-flash { };
  tt-smi = callPackage ../development/python-modules/tt-smi { };
  tt-tools-common = callPackage ../development/python-modules/tt-tools-common { };
  ttach = callPackage ../development/python-modules/ttach { };