Unverified Commit 78013614 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #335343 from fabaff/pyenphase-refactor

python312Packages.pyenphase: refactor
parents e738aa6b 6e3b1fe2
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
  poetry-core,
  pyjwt,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  respx,
@@ -31,10 +32,7 @@ buildPythonPackage rec {
    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" ];