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

This commit is contained in:
Tristan Ross
2025-10-11 04:34:41 +00:00
committed by GitHub
4 changed files with 66 additions and 2 deletions

View File

@@ -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; [

View File

@@ -0,0 +1,59 @@
{
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 ];
};
}

View File

@@ -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 = [

View File

@@ -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 { };