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 {
inherit pkgs;
pyluwen = luwen.pyluwen_0_1;
tools-common = common;
};
smi = import ./pkgs/smi {
inherit pkgs;

View file

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