From 9fc2979d56200ce947789aea6663b1f265ad9ffe Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Wed, 22 Jul 2026 22:01:28 -0400 Subject: [PATCH] python3Packages.frictionless: switch to pytest 9.0 Without it, tests fail in setup phase when configuring fixtures. Probably some incompatibility issue with pytest + pytest-lazy-fixtures combination. --- .../python-modules/frictionless/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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";