python312Packages.pyenphase: refactor

This commit is contained in:
Fabian Affolter 2024-08-17 11:52:36 +02:00
parent 02a8f81ccb
commit 6e3b1fe20a

View File

@ -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" ];