python3Packages.tt-flash: init at 3.3.3 (#421689)

Changed files
+154
pkgs
development
python-modules
pyluwen
tt-flash
tt-tools-common
top-level
+53
pkgs/development/python-modules/pyluwen/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
runCommand,
+
fetchFromGitHub,
+
rustPlatform,
+
maturin,
+
protobuf_30,
+
}:
+
buildPythonPackage rec {
+
pname = "pyluwen";
+
version = "0.7.11";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "tenstorrent";
+
repo = "luwen";
+
tag = "v${version}";
+
hash = "sha256-eQpKEeuy0mVrmu8ssAOWBcXi7zutStu+RbZOEF/IJ98=";
+
};
+
+
cargoDeps = rustPlatform.fetchCargoVendor {
+
inherit src;
+
hash = "sha256-INzF8ORkrmPQMJbGSNm5QkfMOgE+HJ3taU1EZ9i+HJg=";
+
};
+
+
sourceRoot = "${src.name}/crates/${pname}";
+
+
prePatch = ''
+
chmod -R u+w ../../
+
cd ../../
+
'';
+
+
postPatch = ''
+
cd ../$sourceRoot
+
cp --no-preserve=ownership,mode ../../Cargo.lock .
+
'';
+
+
nativeBuildInputs = with rustPlatform; [
+
cargoSetupHook
+
maturinBuildHook
+
protobuf_30
+
];
+
+
build-system = [ maturin ];
+
+
meta = {
+
description = "Tenstorrent system interface library";
+
homepage = "https://github.com/tenstorrent/luwen";
+
maintainers = with lib.maintainers; [ RossComputerGuy ];
+
license = with lib.licenses; [ asl20 ];
+
};
+
}
+44
pkgs/development/python-modules/tt-flash/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitHub,
+
fetchpatch,
+
setuptools,
+
pyyaml,
+
tabulate,
+
pyluwen,
+
tt-tools-common,
+
}:
+
buildPythonPackage rec {
+
pname = "tt-flash";
+
version = "3.3.3";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "tenstorrent";
+
repo = "tt-flash";
+
tag = "v${version}";
+
hash = "sha256-edWogH/HZZlGwyiqGbj6vunNxhsCr/+3LzmFgFGzjck=";
+
};
+
+
build-system = [
+
setuptools
+
];
+
+
dependencies = [
+
tabulate
+
pyyaml
+
pyluwen
+
tt-tools-common
+
];
+
+
pythonImportsCheck = [ "tt_flash" ];
+
pythonRelaxDeps = [ "pyyaml" ];
+
+
meta = {
+
description = "Tenstorrent Firmware Update Utility";
+
homepage = "https://tenstorrent.com";
+
maintainers = with lib.maintainers; [ RossComputerGuy ];
+
license = with lib.licenses; [ asl20 ];
+
};
+
}
+51
pkgs/development/python-modules/tt-tools-common/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchpatch,
+
fetchFromGitHub,
+
setuptools,
+
distro,
+
elasticsearch,
+
psutil,
+
pyyaml,
+
rich,
+
textual,
+
requests,
+
tqdm,
+
pydantic,
+
}:
+
buildPythonPackage rec {
+
pname = "tt-tools-common";
+
version = "1.4.25";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "tenstorrent";
+
repo = "tt-tools-common";
+
tag = "v${version}";
+
hash = "sha256-phal8KxfQqsGAIcKQTlSPZB04J158jZYlyamZr45vdU=";
+
};
+
+
build-system = [
+
setuptools
+
];
+
+
dependencies = [
+
distro
+
elasticsearch
+
psutil
+
pyyaml
+
rich
+
textual
+
requests
+
tqdm
+
pydantic
+
];
+
+
meta = {
+
description = "Helper library for common utilities shared across Tentorrent tools";
+
homepage = "https://github.com/tenstorrent/tt-tools-common";
+
maintainers = with lib.maintainers; [ RossComputerGuy ];
+
license = with lib.licenses; [ asl20 ];
+
};
+
}
+6
pkgs/top-level/python-packages.nix
···
pylutron-caseta = callPackage ../development/python-modules/pylutron-caseta { };
+
pyluwen = callPackage ../development/python-modules/pyluwen { };
+
pylxd = callPackage ../development/python-modules/pylxd { };
pylyrics = callPackage ../development/python-modules/pylyrics { };
···
tskit = callPackage ../development/python-modules/tskit { };
tsplib95 = callPackage ../development/python-modules/tsplib95 { };
+
+
tt-flash = callPackage ../development/python-modules/tt-flash { };
+
+
tt-tools-common = callPackage ../development/python-modules/tt-tools-common { };
ttach = callPackage ../development/python-modules/ttach { };