python311Packages.camel-converter: migate to pytest-cov-stub

This commit is contained in:
Peder Bergebakken Sundt
2024-08-06 23:36:26 +02:00
parent af1f0a8dd2
commit 205a59a9df
@@ -5,6 +5,7 @@
poetry-core,
pydantic,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
}:
@@ -22,18 +23,16 @@ buildPythonPackage rec {
hash = "sha256-CJbflRI3wfUmPoVuLwZDYcobESmySvnS99PdpSDhDLk=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov=camel_converter --cov-report term-missing --no-cov-on-fail" ""
'';
build-system = [ poetry-core ];
passthru.optional-dependencies = {
pydantic = [ pydantic ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pydantic;
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
] ++ passthru.optional-dependencies.pydantic;
pythonImportsCheck = [ "camel_converter" ];