flash: fix build & update & use pythonRelaxDepsHook

This commit is contained in:
Artturin 2024-10-01 22:04:18 +03:00
parent e3bce2e84f
commit 64e42b9d68
2 changed files with 16 additions and 4 deletions

View file

@ -24,6 +24,7 @@
flash = import ./pkgs/flash { flash = import ./pkgs/flash {
inherit pkgs; inherit pkgs;
pyluwen = luwen.pyluwen_0_1; pyluwen = luwen.pyluwen_0_1;
tools-common = common;
}; };
smi = import ./pkgs/smi { smi = import ./pkgs/smi {
inherit pkgs; inherit pkgs;

View file

@ -1,18 +1,28 @@
{ pkgs, pyluwen }: {
pkgs,
pyluwen,
tools-common,
}:
with pkgs.python3Packages; with pkgs.python3Packages;
buildPythonPackage rec { buildPythonPackage rec {
pname = "tt-flash"; pname = "tt-flash";
version = "main-01-31-24"; version = "unstable-2024-09-27";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "tenstorrent"; owner = "tenstorrent";
repo = "tt-flash"; repo = "tt-flash";
rev = "09db4103efe0c63adc3ea6e61f19eac7eb06d46f"; rev = "4002fee1da7edfcbf09093ba23612caeca071f23";
hash = "sha256-fNAP/XuPdn51TtBEelSjh93NgMiyP1j6RqjnrzX9dc4="; hash = "sha256-O6b/vS/zCjp/mrNzFEylWs0jtwdHY65nwkvn5GFridI=";
}; };
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [
"pyyaml"
];
format = "pyproject"; format = "pyproject";
# patches = [ ./pyproject.patch ./log.patch ]; # patches = [ ./pyproject.patch ./log.patch ];
@ -22,5 +32,6 @@ buildPythonPackage rec {
pyyaml pyyaml
pyluwen pyluwen
tabulate tabulate
tools-common
]; # requests textual black distro elasticsearch jsons pydantic psutil pyyaml pyluwen importlib-resources pkgs.pre-commit tools-common ]; ]; # requests textual black distro elasticsearch jsons pydantic psutil pyyaml pyluwen importlib-resources pkgs.pre-commit tools-common ];
} }