diff --git a/pkgs/development/python-modules/pytest-notebook/default.nix b/pkgs/development/python-modules/pytest-notebook/default.nix index 597c27f2b049..6d24c8c2ac60 100644 --- a/pkgs/development/python-modules/pytest-notebook/default.nix +++ b/pkgs/development/python-modules/pytest-notebook/default.nix @@ -18,7 +18,6 @@ # tests black, - coverage, ipykernel, pytest-cov-stub, pytest-regressions, @@ -39,6 +38,12 @@ buildPythonPackage rec { hash = "sha256-LoK0wb7rAbVbgyURCbSfckWvJDef3tPY+7V4YU1IBRU="; }; + postPatch = '' + # we disable the tests relying on coverage for unrelated reasons + substituteInPlace tests/test_execution.py \ + --replace-fail "from coverage import CoverageData" "" + ''; + build-system = [ flit-core ]; @@ -62,7 +67,6 @@ buildPythonPackage rec { nativeCheckInputs = [ black - coverage ipykernel pytest-cov-stub pytest-regressions