your_spotify: 1.11.0 -> 1.12.0 (#366529)
[NixPkgs.git] / pkgs / development / python-modules / chai / default.nix
blob756a2ab0868bc3c6e210f958bf3fd84907b42c5b
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5 }:
7 buildPythonPackage rec {
8   pname = "chai";
9   version = "1.1.2";
10   format = "setuptools";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "ff8d2b6855f660cd23cd5ec79bd10264d39f24f6235773331b48e7fcd637d6cc";
15   };
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   '';
25   meta = with lib; {
26     description = "Mocking, stubbing and spying framework for python";
27   };