diff options
Diffstat (limited to 'pkgs/development/python-modules/chai/default.nix')
-rw-r--r-- | pkgs/development/python-modules/chai/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/chai/default.nix b/pkgs/development/python-modules/chai/default.nix index 6146ec692c75f..756a2ab0868bc 100644 --- a/pkgs/development/python-modules/chai/default.nix +++ b/pkgs/development/python-modules/chai/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "chai"; @@ -10,6 +14,14 @@ buildPythonPackage rec { sha256 = "ff8d2b6855f660cd23cd5ec79bd10264d39f24f6235773331b48e7fcd637d6cc"; }; + postPatch = '' + # python 3.12 compatibility + substituteInPlace tests/*.py \ + --replace "assertEquals" "assertEqual" \ + --replace "assertNotEquals" "assertNotEqual" \ + --replace "assert_equals" "assert_equal" + ''; + meta = with lib; { description = "Mocking, stubbing and spying framework for python"; }; |