tt-flake/pkgs/smi/default.nix

48 lines
850 B
Nix
Raw Normal View History

2024-10-01 18:41:35 +00:00
{
pkgs,
pyluwen,
tools-common,
}:
2024-01-31 05:20:40 +00:00
with pkgs.python3Packages;
buildPythonPackage rec {
pname = "tt-smi";
version = "unstable-2024-09-27";
2024-01-31 05:20:40 +00:00
src = pkgs.fetchFromGitHub {
owner = "tenstorrent";
repo = "tt-smi";
rev = "052f1ce49b94581710744a91939121e01c24b5f2";
hash = "sha256-IA60unZpSWVnMnDjDIC31QtURi9nIr/F7s7PGZilPcw=";
2024-01-31 05:20:40 +00:00
};
format = "pyproject";
2024-10-01 18:41:35 +00:00
patches = [
# TODO: Still needed? Builds without.
#./log.patch
2024-10-01 18:41:35 +00:00
];
2024-01-31 05:20:40 +00:00
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [ "black" "distro" "elasticsearch" "rich" "textual" "pre-commit" "importlib-resources" ];
2024-10-01 18:41:35 +00:00
propagatedBuildInputs = [
setuptools
requests
textual
black
distro
elasticsearch
jsons
pydantic
psutil
pyyaml
pyluwen
importlib-resources
pkgs.pre-commit
tools-common
];
2024-01-31 05:20:40 +00:00
}