diff options
Diffstat (limited to 'pkgs/development/python-modules/pyenphase')
-rw-r--r-- | pkgs/development/python-modules/pyenphase/default.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/pyenphase/default.nix b/pkgs/development/python-modules/pyenphase/default.nix index 45e4b014db726..a96386890be15 100644 --- a/pkgs/development/python-modules/pyenphase/default.nix +++ b/pkgs/development/python-modules/pyenphase/default.nix @@ -10,6 +10,7 @@ poetry-core, pyjwt, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, pythonOlder, respx, @@ -19,7 +20,7 @@ buildPythonPackage rec { pname = "pyenphase"; - version = "1.20.2"; + version = "1.22.0"; pyproject = true; disabled = pythonOlder "3.11"; @@ -28,13 +29,10 @@ buildPythonPackage rec { owner = "pyenphase"; repo = "pyenphase"; rev = "refs/tags/v${version}"; - hash = "sha256-sjZaLqTYoXJ1cpaSuyLNAsUrACOMVah7DKaKxGkG0zE="; + hash = "sha256-letF0s/zJKdMT2nGnZpMFufja0bsL0zlwG+dCSK5BA4="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail " --cov=pyenphase --cov-report=term-missing:skip-covered" "" - ''; + pythonRelaxDeps = [ "tenacity" ]; build-system = [ poetry-core ]; @@ -50,14 +48,15 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio + pytest-cov-stub pytestCheckHook respx syrupy ]; - disabledTests = [ - # https://github.com/pyenphase/pyenphase/issues/97 - "test_with_7_x_firmware" + disabledTestPaths = [ + # Tests need network access + "tests/test_retries.py" ]; pythonImportsCheck = [ "pyenphase" ]; |