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