Commit 88334fc9 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.twentemilieu: migrate to pytest-cov-stub

parent 34310888
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  aiohttp,
  yarl,
  aresponses,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  yarl,
}:

buildPythonPackage rec {
@@ -26,8 +27,8 @@ buildPythonPackage rec {
  };

  postPatch = ''
    # Upstream is creating GitHub releases without version
    substituteInPlace pyproject.toml \
      --replace "--cov" "" \
      --replace '"0.0.0"' '"${version}"'
  '';

@@ -41,6 +42,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    aresponses
    pytest-asyncio
    pytest-cov-stub
    pytestCheckHook
  ];