{smi,tools-common}: pin textual
This commit is contained in:
parent
2245c9c5ea
commit
65d7bef16d
|
@ -39,7 +39,6 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
requests
|
requests
|
||||||
textual
|
|
||||||
black
|
black
|
||||||
distro
|
distro
|
||||||
elasticsearch
|
elasticsearch
|
||||||
|
@ -51,6 +50,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
|
||||||
|
|
|
@ -1,13 +1,28 @@
|
||||||
{ pkgs }:
|
{ fetchFromGitHub, python3Packages }:
|
||||||
|
|
||||||
with pkgs.python3Packages;
|
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
|
||||||
|
|
||||||
buildPythonPackage rec {
|
python3Packages.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 = pkgs.fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tenstorrent";
|
owner = "tenstorrent";
|
||||||
repo = "tt-tools-common";
|
repo = "tt-tools-common";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
|
@ -16,7 +31,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"distro"
|
"distro"
|
||||||
|
@ -29,14 +44,14 @@ buildPythonPackage rec {
|
||||||
"tqdm"
|
"tqdm"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
setuptools
|
setuptools
|
||||||
distro
|
distro
|
||||||
elasticsearch
|
elasticsearch
|
||||||
psutil
|
psutil
|
||||||
pyyaml
|
pyyaml
|
||||||
rich
|
rich
|
||||||
textual
|
textual_0_82
|
||||||
requests
|
requests
|
||||||
jsons
|
jsons
|
||||||
tqdm
|
tqdm
|
||||||
|
@ -46,4 +61,8 @@ buildPythonPackage rec {
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"tt_tools_common"
|
"tt_tools_common"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
textual = textual_0_82;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue