mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-12 23:48:25 +03:00
python312Packages.chai: fix python 3.12 build
assertXYZ methods with the "s" suffix were removed in python 3.12, patch until fixed upstream
This commit is contained in:
parent
e238fe9630
commit
b11a9b32ca
@ -10,6 +10,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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user