python312Packages.bthome-ble: migrate to pytest-cov-stub

This commit is contained in:
Fabian Affolter
2024-12-15 12:24:04 +01:00
parent 74bd4b9fe6
commit fa0c52f825
@@ -6,6 +6,7 @@
cryptography,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
pytz,
@@ -26,11 +27,6 @@ buildPythonPackage rec {
hash = "sha256-TlZyNGfHNKN+6tCKepLS+fbgfq3a1uzeCXl25khl6d8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
dependencies = [
@@ -41,7 +37,10 @@ buildPythonPackage rec {
pytz
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "bthome_ble" ];