From 205a59a9dffe9d7ebec3dd40a82a0ed5dab3d035 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 6 Aug 2024 23:36:26 +0200 Subject: [PATCH] python311Packages.camel-converter: migate to pytest-cov-stub --- .../python-modules/camel-converter/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/camel-converter/default.nix b/pkgs/development/python-modules/camel-converter/default.nix index 95967d2300e4..80bd4e14db8b 100644 --- a/pkgs/development/python-modules/camel-converter/default.nix +++ b/pkgs/development/python-modules/camel-converter/default.nix @@ -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" ];