diff --git a/pkgs/development/python-modules/frictionless/default.nix b/pkgs/development/python-modules/frictionless/default.nix index 16ca71f53623..83b2e5aee9af 100644 --- a/pkgs/development/python-modules/frictionless/default.nix +++ b/pkgs/development/python-modules/frictionless/default.nix @@ -1,4 +1,4 @@ -{ +args@{ lib, buildPythonPackage, fetchFromGitHub, @@ -56,12 +56,21 @@ pytest-mock, pytest-timeout, pytest-vcr, - pytestCheckHook, + pytest_9_0, + pytest9_0CheckHook, requests-mock, xlrd, yattag, }: +let + # With pytest 9.1 fails: AssertionError: assert not self._finalizers + pytestCheckHook = pytest9_0CheckHook; + pytest-lazy-fixtures = args.pytest-lazy-fixtures.override { + pytest = pytest_9_0; + pytestCheckHook = pytest9_0CheckHook; + }; +in buildPythonPackage (finalAttrs: { pname = "frictionless"; version = "5.19.0";