From f5316f16f6114a955bb0e201c4a9259de8af72ef Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 6 May 2026 15:29:48 +0000 Subject: [PATCH 1/3] python3Packages.pyluwen: cleanup --- pkgs/development/python-modules/pyluwen/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyluwen/default.nix b/pkgs/development/python-modules/pyluwen/default.nix index 37fc91f0dd17..da3620d49289 100644 --- a/pkgs/development/python-modules/pyluwen/default.nix +++ b/pkgs/development/python-modules/pyluwen/default.nix @@ -1,9 +1,9 @@ { lib, buildPythonPackage, - runCommand, fetchFromGitHub, rustPlatform, + maturin, protobuf_30, }: @@ -21,11 +21,11 @@ buildPythonPackage (finalAttrs: { }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit (finalAttrs) src; + inherit (finalAttrs) pname version src; hash = "sha256-QBGXbRiBk4WIQFopq1OccmUHgx5GzR/PKhMH4Ie+fyg="; }; - sourceRoot = "${finalAttrs.src.name}/bind/${finalAttrs.pname}"; + sourceRoot = "${finalAttrs.src.name}/bind/pyluwen"; prePatch = '' chmod -R u+w ../../ @@ -49,6 +49,7 @@ buildPythonPackage (finalAttrs: { meta = { description = "Tenstorrent system interface library"; homepage = "https://github.com/tenstorrent/luwen"; + changelog = "https://github.com/tenstorrent/luwen/releases/tag/${finalAttrs.src.tag}"; maintainers = with lib.maintainers; [ RossComputerGuy ]; license = with lib.licenses; [ asl20 ]; }; From 32aad6a0c07602cd06347006e9bb70168b976f3c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 6 May 2026 15:24:44 +0000 Subject: [PATCH 2/3] python3Packages.tt-flash: cleanup, enable tests --- .../python-modules/tt-flash/default.nix | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/tt-flash/default.nix b/pkgs/development/python-modules/tt-flash/default.nix index 429f91f52a91..813e25fd0289 100644 --- a/pkgs/development/python-modules/tt-flash/default.nix +++ b/pkgs/development/python-modules/tt-flash/default.nix @@ -2,12 +2,18 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch, + + # build-system setuptools, + + # dependencies pyyaml, tabulate, pyluwen, tt-tools-common, + + # tests + pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "tt-flash"; @@ -26,6 +32,10 @@ buildPythonPackage (finalAttrs: { setuptools ]; + pythonRelaxDeps = [ + "pyyaml" + "tabulate" + ]; dependencies = [ tabulate pyyaml @@ -34,14 +44,16 @@ buildPythonPackage (finalAttrs: { ]; pythonImportsCheck = [ "tt_flash" ]; - pythonRelaxDeps = [ - "pyyaml" - "tabulate" + + nativeCheckInputs = [ + pytestCheckHook ]; meta = { description = "Tenstorrent Firmware Update Utility"; homepage = "https://tenstorrent.com"; + downloadPage = "https://github.com/tenstorrent/tt-flash"; + changelog = "https://github.com/tenstorrent/tt-flash/blob/${finalAttrs.src.tag}/CHANGELOG.md"; maintainers = with lib.maintainers; [ RossComputerGuy ]; license = with lib.licenses; [ asl20 ]; }; From 75ca23c8314fd98d2e048a9a979343084f0cab0b Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 6 May 2026 15:28:06 +0000 Subject: [PATCH 3/3] tt-smi: add changelog --- pkgs/by-name/tt/tt-smi/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/tt/tt-smi/package.nix b/pkgs/by-name/tt/tt-smi/package.nix index 912e59170ec4..97df94606ee8 100644 --- a/pkgs/by-name/tt/tt-smi/package.nix +++ b/pkgs/by-name/tt/tt-smi/package.nix @@ -51,6 +51,7 @@ python3Packages.buildPythonApplication (finalAttrs: { mainProgram = "tt-smi"; description = "Tenstorrent console based hardware information program"; homepage = "https://github.com/tenstorrent/tt-smi"; + changelog = "https://github.com/tenstorrent/tt-smi/blob/${finalAttrs.src.tag}/CHANGELOG.md"; maintainers = with lib.maintainers; [ RossComputerGuy ]; license = with lib.licenses; [ asl20 ]; };