at master 609 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5}: 6 7buildPythonPackage rec { 8 pname = "chai"; 9 version = "1.1.2"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "ff8d2b6855f660cd23cd5ec79bd10264d39f24f6235773331b48e7fcd637d6cc"; 15 }; 16 17 postPatch = '' 18 # python 3.12 compatibility 19 substituteInPlace tests/*.py \ 20 --replace "assertEquals" "assertEqual" \ 21 --replace "assertNotEquals" "assertNotEqual" \ 22 --replace "assert_equals" "assert_equal" 23 ''; 24 25 meta = with lib; { 26 description = "Mocking, stubbing and spying framework for python"; 27 }; 28}