Init
This commit is contained in:
commit
0e4e4b0979
19 changed files with 3185 additions and 0 deletions
25
pkgs/common/default.nix
Normal file
25
pkgs/common/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs }:
|
||||
|
||||
with pkgs.python3Packages;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tools-common";
|
||||
version = "main-2024-01-31";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "tt-tools-common";
|
||||
rev = "b23ce52352fdf19bf8cd3e3fcea181aa9d2e7dc9";
|
||||
sha256 = "sha256-+BMYCI0+G4zYTI7uyPp+RLyUkKt1fS1WNltnD3xMk2g=";
|
||||
};
|
||||
|
||||
patches = [ ./pyproject.patch ];
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
propagatedBuildInputs = [ setuptools distro elasticsearch psutil pyyaml rich textual requests ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"tt_tools_common"
|
||||
];
|
||||
}
|
13
pkgs/common/pyproject.patch
Normal file
13
pkgs/common/pyproject.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 8be9d63..0dd0736 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -29,7 +29,7 @@ dependencies = [
|
||||
'psutil==5.9.6',
|
||||
'pyyaml==6.0.1',
|
||||
'rich==13.7.0',
|
||||
- 'textual==0.42.0',
|
||||
+ 'textual>=0.42.0',
|
||||
'requests==2.31.0',
|
||||
]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue