summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-08 15:24:41 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-08 15:24:41 +0200
commitb4a0c6772bd91f7745a775d273c6120a5b394a33 (patch)
treec8a389ce176e0baffd5ec8cfc86edd0be327935f
parent5bf6cf54bee7413af45ab105164226141833efe4 (diff)
downloadnixos-b4a0c6772bd91f7745a775d273c6120a5b394a33.tar
nixos-b4a0c6772bd91f7745a775d273c6120a5b394a33.tar.gz
nixos-b4a0c6772bd91f7745a775d273c6120a5b394a33.tar.bz2
nixos-b4a0c6772bd91f7745a775d273c6120a5b394a33.tar.xz
nixos-b4a0c6772bd91f7745a775d273c6120a5b394a33.zip
...
-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]