2025-01-29 18:06:14 +00:00
|
|
|
{ fetchFromGitHub, python3Packages }:
|
2024-01-31 05:20:40 +00:00
|
|
|
|
2025-01-29 18:06:14 +00:00
|
|
|
let
|
|
|
|
# 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
|
2024-01-31 05:20:40 +00:00
|
|
|
|
2025-01-29 18:06:14 +00:00
|
|
|
python3Packages.buildPythonPackage rec {
|
2024-01-31 05:20:40 +00:00
|
|
|
pname = "tools-common";
|
2025-01-29 17:32:57 +00:00
|
|
|
# https://github.com/tenstorrent/tt-smi/blob/main/pyproject.toml#L31
|
|
|
|
version = "1.4.11";
|
2024-01-31 05:20:40 +00:00
|
|
|
|
2025-01-29 18:06:14 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-01-31 05:20:40 +00:00
|
|
|
owner = "tenstorrent";
|
|
|
|
repo = "tt-tools-common";
|
2025-01-29 01:53:16 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2025-01-29 17:32:57 +00:00
|
|
|
sha256 = "sha256-Q5GpT6B3pamY6bUjPbvNJ11npiR4q/6QMjRxovQ/MZ0=";
|
2024-01-31 05:20:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
2025-01-29 18:06:14 +00:00
|
|
|
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
|
2024-10-01 19:01:05 +00:00
|
|
|
|
2024-10-01 20:24:52 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"distro"
|
|
|
|
"elasticsearch"
|
|
|
|
"psutil"
|
|
|
|
"pyyaml"
|
|
|
|
"rich"
|
|
|
|
"requests"
|
|
|
|
"textual"
|
|
|
|
"tqdm"
|
|
|
|
];
|
2024-10-01 19:01:05 +00:00
|
|
|
|
2025-01-29 18:06:14 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2024-10-01 18:41:35 +00:00
|
|
|
setuptools
|
|
|
|
distro
|
|
|
|
elasticsearch
|
|
|
|
psutil
|
|
|
|
pyyaml
|
|
|
|
rich
|
2025-01-29 18:06:14 +00:00
|
|
|
textual_0_82
|
2024-10-01 18:41:35 +00:00
|
|
|
requests
|
2024-10-01 19:01:05 +00:00
|
|
|
jsons
|
|
|
|
tqdm
|
|
|
|
pydantic
|
2024-10-01 18:41:35 +00:00
|
|
|
];
|
2024-01-31 05:20:40 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"tt_tools_common"
|
|
|
|
];
|
2025-01-29 18:06:14 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
textual = textual_0_82;
|
|
|
|
};
|
2024-01-31 05:20:40 +00:00
|
|
|
}
|