Commit 205a59a9 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

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

parent af1f0a8d
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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" ];