1{ lib
2, buildPythonPackage
3, fetchPypi
4, ipython
5, isPyPy
6, mock
7, toml
8}:
9
10buildPythonPackage rec {
11 pname = "ipdb";
12 version = "0.13.9";
13 disabled = isPyPy; # setupterm: could not find terminfo database
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "951bd9a64731c444fd907a5ce268543020086a697f6be08f7cc2c9a752a278c5";
18 };
19
20 propagatedBuildInputs = [ ipython toml ];
21 checkInputs = [ mock ];
22
23 preCheck = ''
24 export HOME=$(mktemp -d)
25 '';
26
27 meta = with lib; {
28 homepage = "https://github.com/gotcha/ipdb";
29 description = "IPython-enabled pdb";
30 license = licenses.bsd0;
31 maintainers = [ maintainers.costrouc ];
32 };
33
34}