diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6e3ef19edad..49602dca9b7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -253,7 +253,7 @@ in { aiohomekit = callPackage ../development/python-modules/aiohomekit { }; aiohttp = callPackage ../development/python-modules/aiohttp { - pytestCheckHook = self.pytestCheckHook.override { pytest = self.pytest_6_1; }; + pytestCheckHook = self.pytest_6_1CheckHook; }; aiohttp-cors = callPackage ../development/python-modules/aiohttp-cors { };