From 738202573aaad4c4fa81bcd082f29df85ad4de31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 12:34:35 -0800 Subject: [PATCH] python313Packages.testfixtures: fix tests --- pkgs/development/python-modules/testfixtures/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/testfixtures/default.nix b/pkgs/development/python-modules/testfixtures/default.nix index e95952f94010..409435d4a533 100644 --- a/pkgs/development/python-modules/testfixtures/default.nix +++ b/pkgs/development/python-modules/testfixtures/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + fetchpatch2, fetchPypi, mock, pytestCheckHook, @@ -28,6 +29,14 @@ buildPythonPackage rec { hash = "sha256-1MC4SvLyZ2EPkIAJtQ1vmDpOWK3iLGe6tnh7WkAtWcA="; }; + patches = [ + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/simplistix/testfixtures/commit/a23532c7bc685589cce6a5037821a74da48959e7.patch?full_index=1"; + hash = "sha256-k0j/WgA+6LNTYJ233GJjeRU403bJJRxbpOu+BUsMeyQ="; + }) + ]; + build-system = [ setuptools ]; nativeCheckInputs = [