Commit 46eafec4 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.luqum: migate to pytest-cov-stub

parent 07bbd20d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  fetchFromGitHub,
  ply,
  pytestCheckHook,
  pytest-cov-stub,
  pythonOlder,
  setuptools,
}:
@@ -26,7 +27,7 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace '--doctest-modules --doctest-glob="test_*.rst" --cov=luqum --cov-branch --cov-report html --no-cov-on-fail' ""
      --replace '--doctest-modules --doctest-glob="test_*.rst"' ""
  '';

  nativeBuildInputs = [ setuptools ];
@@ -37,6 +38,7 @@ buildPythonPackage rec {
    elastic-transport
    elasticsearch-dsl
    pytestCheckHook
    pytest-cov-stub
  ];

  pythonImportsCheck = [ "luqum" ];