summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/smartprom/default.nix2
-rw-r--r--overlays/smartprom/pyproject.toml4
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]
2name = "smartprom" 2name = "smartprom"
3version = "2.2.0" 3version = "2.3.0"
4authors = [] 4authors = []
5description = "" 5description = ""
6 6
@@ -8,7 +8,7 @@ description = ""
8smartprom = "smartprom.__main__:main" 8smartprom = "smartprom.__main__:main"
9 9
10[tool.poetry.dependencies] 10[tool.poetry.dependencies]
11python = ">=3.10.0,<3.12" 11python = ">=3.10.0,<3.13"
12prometheus-client = "^0.16.0" 12prometheus-client = "^0.16.0"
13 13
14[build-system] 14[build-system]