smi: update & fix build & use pythonRelaxDepsHook
This commit is contained in:
parent
5130f01d99
commit
228391aa60
|
@ -8,22 +8,26 @@ with pkgs.python3Packages;
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tt-smi";
|
pname = "tt-smi";
|
||||||
version = "main-01-31-24";
|
version = "unstable-2024-09-27";
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "tenstorrent";
|
owner = "tenstorrent";
|
||||||
repo = "tt-smi";
|
repo = "tt-smi";
|
||||||
rev = "2071978";
|
rev = "052f1ce49b94581710744a91939121e01c24b5f2";
|
||||||
hash = "sha256-sqwGWeeMBxOyHiVI2GcQ5CyZ8Zaty7FjhkS0C7H7QkM=";
|
hash = "sha256-IA60unZpSWVnMnDjDIC31QtURi9nIr/F7s7PGZilPcw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./pyproject.patch
|
# TODO: Still needed? Builds without.
|
||||||
./log.patch
|
#./log.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [ "black" "distro" "elasticsearch" "rich" "textual" "pre-commit" "importlib-resources" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
requests
|
requests
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
diff --git a/pyproject.toml b/pyproject.toml
|
|
||||||
index a6e73a4..5085274 100644
|
|
||||||
--- a/pyproject.toml
|
|
||||||
+++ b/pyproject.toml
|
|
||||||
@@ -29,14 +29,14 @@ dependencies = [
|
|
||||||
'elasticsearch==8.11.0',
|
|
||||||
'jsons==1.6.3',
|
|
||||||
'linkify-it-py==2.0.2',
|
|
||||||
- 'pydantic==1.*',
|
|
||||||
+ 'pydantic>=1.0.0',
|
|
||||||
'psutil==5.9.6',
|
|
||||||
'pyyaml==6.0.1',
|
|
||||||
'tt_tools_common @ git+https://github.com/tenstorrent/tt-tools-common.git',
|
|
||||||
'pyluwen @ git+https://github.com/tenstorrent/luwen.git@v0.1.0#subdirectory=crates/pyluwen',
|
|
||||||
'rich==13.7.0',
|
|
||||||
- 'textual==0.42.0',
|
|
||||||
- 'pre-commit==3.5.0',
|
|
||||||
+ 'textual>=0.42.0',
|
|
||||||
+ 'pre-commit>=3.5.0',
|
|
||||||
'importlib_resources==6.1.1',
|
|
||||||
'requests==2.31.0',
|
|
||||||
]
|
|
Loading…
Reference in a new issue