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