Compare commits
No commits in common. "65d7bef16dae3f21b9b2b06cb1715a83907c9ca4" and "f18aa5fee28b5b6c706774c73c2d8700acfb79f6" have entirely different histories.
65d7bef16d
...
f18aa5fee2
|
@ -39,6 +39,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
requests
|
requests
|
||||||
|
textual
|
||||||
black
|
black
|
||||||
distro
|
distro
|
||||||
elasticsearch
|
elasticsearch
|
||||||
|
@ -50,14 +51,7 @@ buildPythonPackage rec {
|
||||||
importlib-resources
|
importlib-resources
|
||||||
pkgs.pre-commit
|
pkgs.pre-commit
|
||||||
tools-common
|
tools-common
|
||||||
tools-common.textual
|
|
||||||
];
|
];
|
||||||
|
|
||||||
dontUsePytestCheck = true; # no tests
|
dontUsePytestCheck = true; # no tests
|
||||||
|
|
||||||
installCheckPhase = ''
|
|
||||||
output=$($out/bin/tt-smi || true)
|
|
||||||
echo "tt-smi output: $output"
|
|
||||||
echo $output | grep -q "No Tenstorrent driver detected"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,28 +1,13 @@
|
||||||
{ fetchFromGitHub, python3Packages }:
|
{ pkgs }:
|
||||||
|
|
||||||
let
|
with pkgs.python3Packages;
|
||||||
# Can be unpinned once https://github.com/tenstorrent/tt-tools-common/blob/main/pyproject.toml#L32
|
|
||||||
# is v1
|
|
||||||
textual_0_82 = python3Packages.textual.overridePythonAttrs (old: rec {
|
|
||||||
version = "0.82.0";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "Textualize";
|
|
||||||
repo = "textual";
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
hash = "sha256-belpoXQ+CkTchK+FjI/Ur8v4cNgzX39xLdNfPCwaU6E=";
|
|
||||||
};
|
|
||||||
disabledTests = old.disabledTests ++ [
|
|
||||||
"test_selection"
|
|
||||||
];
|
|
||||||
});
|
|
||||||
in
|
|
||||||
|
|
||||||
python3Packages.buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tools-common";
|
pname = "tools-common";
|
||||||
# https://github.com/tenstorrent/tt-smi/blob/main/pyproject.toml#L31
|
# https://github.com/tenstorrent/tt-smi/blob/main/pyproject.toml#L31
|
||||||
version = "1.4.11";
|
version = "1.4.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "tenstorrent";
|
owner = "tenstorrent";
|
||||||
repo = "tt-tools-common";
|
repo = "tt-tools-common";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
|
@ -31,7 +16,7 @@ python3Packages.buildPythonPackage rec {
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"distro"
|
"distro"
|
||||||
|
@ -44,14 +29,14 @@ python3Packages.buildPythonPackage rec {
|
||||||
"tqdm"
|
"tqdm"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
distro
|
distro
|
||||||
elasticsearch
|
elasticsearch
|
||||||
psutil
|
psutil
|
||||||
pyyaml
|
pyyaml
|
||||||
rich
|
rich
|
||||||
textual_0_82
|
textual
|
||||||
requests
|
requests
|
||||||
jsons
|
jsons
|
||||||
tqdm
|
tqdm
|
||||||
|
@ -61,8 +46,4 @@ python3Packages.buildPythonPackage rec {
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"tt_tools_common"
|
"tt_tools_common"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru = {
|
|
||||||
textual = textual_0_82;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue