python3Packages.pytest-mock: fix tests with pytest 9.1

This commit is contained in:
Martin Weinelt
2026-07-11 23:46:46 +02:00
parent b64e13cf97
commit ff3f2270db

View File

@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytest,
pytest-asyncio,
pytestCheckHook,
@@ -21,6 +22,14 @@ buildPythonPackage rec {
hash = "sha256-9h5/cssWs4F0LKnFLjWDsEjB2AYczLvnSjiUdsaEcBQ=";
};
patches = [
(fetchpatch {
name = "pytest-9.1-compat.patch";
url = "https://github.com/pytest-dev/pytest-mock/commit/1d42981a1577207db5919852f30ef08c97208496.patch";
hash = "sha256-9/vQi/VvZRrIUSq1e90MvLB0idkc+tT4R6q1Ut4HKnY=";
})
];
build-system = [
setuptools
setuptools-scm