From 953bc491e540c448bdafa83917be3e4f2c60bc7b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 12 Jul 2026 15:16:38 +0200 Subject: [PATCH] python3Packages.oschmod: fix tests with pytest 9.1 > ERROR: Unknown config option: mock_use_standalone_module --- pkgs/development/python-modules/oschmod/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/oschmod/default.nix b/pkgs/development/python-modules/oschmod/default.nix index 8ce9b703c6b2..e724623d1d90 100644 --- a/pkgs/development/python-modules/oschmod/default.nix +++ b/pkgs/development/python-modules/oschmod/default.nix @@ -3,6 +3,8 @@ buildPythonPackage, fetchPypi, setuptools, + mock, + pytest-mock, pytestCheckHook, }: @@ -18,7 +20,11 @@ buildPythonPackage rec { build-system = [ setuptools ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + mock + pytest-mock + pytestCheckHook + ]; pythonImportsCheck = [ "oschmod" ];