diff --git a/pkgs/development/python-modules/frictionless/default.nix b/pkgs/development/python-modules/frictionless/default.nix index 95962afd69f0..875d88119ace 100644 --- a/pkgs/development/python-modules/frictionless/default.nix +++ b/pkgs/development/python-modules/frictionless/default.nix @@ -47,8 +47,6 @@ # Tests pytestCheckHook, - pytest-cov, - pytest-dotenv, pytest-lazy-fixtures, pytest-mock, pytest-timeout, @@ -73,6 +71,12 @@ buildPythonPackage rec { hash = "sha256-svspEHcEw994pEjnuzWf0FFaYeFZuqriK96yFAB6/gI="; }; + postPatch = '' + substituteInPlace frictionless/conftest.py \ + --replace-fail "from pytest_cov.embed import cleanup_on_sigterm" "" \ + --replace-fail "cleanup_on_sigterm()" "" + ''; + build-system = [ hatchling ]; @@ -179,8 +183,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook - pytest-cov - pytest-dotenv pytest-lazy-fixtures pytest-mock pytest-timeout