Skip to content

Commit ac30c81

Browse files
authored
Merge pull request #279042 from fabaff/omnikinverter-bump
python311Packages.omnikinverter: 0.9.1 -> 1.0.0
2 parents 63f5f08 + ae980a7 commit ac30c81

File tree

1 file changed

+13
-11
lines changed
  • pkgs/development/python-modules/omnikinverter

1 file changed

+13
-11
lines changed

pkgs/development/python-modules/omnikinverter/default.nix

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,27 @@
1212

1313
buildPythonPackage rec {
1414
pname = "omnikinverter";
15-
version = "0.9.1";
16-
format = "pyproject";
15+
version = "1.0.0";
16+
pyproject = true;
1717

18-
disabled = pythonOlder "3.9";
18+
disabled = pythonOlder "3.11";
1919

2020
src = fetchFromGitHub {
2121
owner = "klaasnicolaas";
2222
repo = "python-omnikinverter";
2323
rev = "refs/tags/v${version}";
24-
hash = "sha256-Vjfnwk9iIe5j+s/zJHQ2X095Eexp/aKtIi/k0sK45q0=";
24+
hash = "sha256-W9VeRhsCXLLgOgvJcNNCGNmPvakPtKHAtwQAGtYJbcY=";
2525
};
2626

27+
__darwinAllowLocalNetworking = true;
28+
29+
postPatch = ''
30+
# Upstream doesn't set a version for the pyproject.toml
31+
substituteInPlace pyproject.toml \
32+
--replace "0.0.0" "${version}" \
33+
--replace "--cov" ""
34+
'';
35+
2736
nativeBuildInputs = [
2837
poetry-core
2938
];
@@ -39,13 +48,6 @@ buildPythonPackage rec {
3948
pytestCheckHook
4049
];
4150

42-
postPatch = ''
43-
# Upstream doesn't set a version for the pyproject.toml
44-
substituteInPlace pyproject.toml \
45-
--replace "0.0.0" "${version}" \
46-
--replace "--cov" ""
47-
'';
48-
4951
pythonImportsCheck = [
5052
"omnikinverter"
5153
];

0 commit comments

Comments
 (0)