tt-flake/pkgs/tools-common/default.nix

49 lines
741 B
Nix
Raw Normal View History

2024-01-31 05:20:40 +00:00
{ pkgs }:
with pkgs.python3Packages;
buildPythonPackage rec {
pname = "tools-common";
2025-01-29 01:53:16 +00:00
version = "1.4.12";
2024-01-31 05:20:40 +00:00
src = pkgs.fetchFromGitHub {
owner = "tenstorrent";
repo = "tt-tools-common";
2025-01-29 01:53:16 +00:00
rev = "refs/tags/v${version}";
sha256 = "sha256-FKV1ojY9m5aRfnrU6LjXVcUnNAmNNXiGaUax6RE/8Vs=";
2024-01-31 05:20:40 +00:00
};
format = "pyproject";
nativeBuildInputs = [ pythonRelaxDepsHook ];
2024-10-01 20:24:52 +00:00
pythonRelaxDeps = [
"distro"
"elasticsearch"
"psutil"
"pyyaml"
"rich"
"requests"
"textual"
"tqdm"
];
2024-10-01 18:41:35 +00:00
propagatedBuildInputs = [
setuptools
distro
elasticsearch
psutil
pyyaml
rich
textual
requests
jsons
tqdm
pydantic
2024-10-01 18:41:35 +00:00
];
2024-01-31 05:20:40 +00:00
pythonImportsCheck = [
"tt_tools_common"
];
}