diff options
Diffstat (limited to 'overlays/smartprom')
-rw-r--r-- | overlays/smartprom/default.nix | 2 | ||||
-rw-r--r-- | overlays/smartprom/pyproject.toml | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/overlays/smartprom/default.nix b/overlays/smartprom/default.nix index 57ab6f11..35e94608 100644 --- a/overlays/smartprom/default.nix +++ b/overlays/smartprom/default.nix | |||
@@ -10,7 +10,9 @@ | |||
10 | cp -r ${sources.smartprom.src}/. $out | 10 | cp -r ${sources.smartprom.src}/. $out |
11 | 11 | ||
12 | mkdir $out/smartprom | 12 | mkdir $out/smartprom |
13 | mv $out/megaraid.py $out/smartprom | ||
13 | mv $out/smartprom.py $out/smartprom/__main__.py | 14 | mv $out/smartprom.py $out/smartprom/__main__.py |
15 | sed -ri 's/import megaraid/from . import megaraid/' $out/smartprom/__main__.py | ||
14 | echo >> $out/smartprom/__init__.py | 16 | echo >> $out/smartprom/__init__.py |
15 | 17 | ||
16 | cp ${./pyproject.toml} $out/pyproject.toml | 18 | cp ${./pyproject.toml} $out/pyproject.toml |
diff --git a/overlays/smartprom/pyproject.toml b/overlays/smartprom/pyproject.toml index ad58bd51..8ca28f00 100644 --- a/overlays/smartprom/pyproject.toml +++ b/overlays/smartprom/pyproject.toml | |||
@@ -1,6 +1,6 @@ | |||
1 | [tool.poetry] | 1 | [tool.poetry] |
2 | name = "smartprom" | 2 | name = "smartprom" |
3 | version = "2.2.0" | 3 | version = "2.3.0" |
4 | authors = [] | 4 | authors = [] |
5 | description = "" | 5 | description = "" |
6 | 6 | ||
@@ -8,7 +8,7 @@ description = "" | |||
8 | smartprom = "smartprom.__main__:main" | 8 | smartprom = "smartprom.__main__:main" |
9 | 9 | ||
10 | [tool.poetry.dependencies] | 10 | [tool.poetry.dependencies] |
11 | python = ">=3.10.0,<3.12" | 11 | python = ">=3.10.0,<3.13" |
12 | prometheus-client = "^0.16.0" | 12 | prometheus-client = "^0.16.0" |
13 | 13 | ||
14 | [build-system] | 14 | [build-system] |