From 870f8bf3c60ae544f2ceb05be5b4d825df172a38 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Sat, 20 Sep 2025 10:38:42 -0700 Subject: [PATCH 1/3] pythonPackages.pyluwen: fix pyproject version misalignment --- pkgs/development/python-modules/pyluwen/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pyluwen/default.nix b/pkgs/development/python-modules/pyluwen/default.nix index 329e5ecb898a..dad420df0e76 100644 --- a/pkgs/development/python-modules/pyluwen/default.nix +++ b/pkgs/development/python-modules/pyluwen/default.nix @@ -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; [ From 75d6a7961c0d01b64fbe454fb815ace661308e68 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Sat, 20 Sep 2025 10:39:10 -0700 Subject: [PATCH 2/3] pythonPackages.tt-tools-common: 1.4.25 -> 1.4.28 --- pkgs/development/python-modules/tt-tools-common/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tt-tools-common/default.nix b/pkgs/development/python-modules/tt-tools-common/default.nix index a6e69f9bc319..bdff5a7aa6ee 100644 --- a/pkgs/development/python-modules/tt-tools-common/default.nix +++ b/pkgs/development/python-modules/tt-tools-common/default.nix @@ -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 = [ From 3ff4483aa309ce85fd1809abfc7f38e611bc2b92 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Sat, 20 Sep 2025 10:39:28 -0700 Subject: [PATCH 3/3] pythonPackages.tt-smi: init at 3.0.30 --- .../python-modules/tt-smi/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/tt-smi/default.nix diff --git a/pkgs/development/python-modules/tt-smi/default.nix b/pkgs/development/python-modules/tt-smi/default.nix new file mode 100644 index 000000000000..c58ae346e466 --- /dev/null +++ b/pkgs/development/python-modules/tt-smi/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f2747156e712..2534be2f00cd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18768,6 +18768,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 { };