about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ipdb/default.nix
blob: b34aa13bbcfc8a40c4250691a3393fdc1d806ebd (plain) (blame)
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
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchPypi
, ipython
, isPyPy
, mock
, toml
}:

buildPythonPackage rec {
  pname = "ipdb";
  version = "0.13.7";
  disabled = isPyPy;  # setupterm: could not find terminfo database

  src = fetchPypi {
    inherit pname version;
    sha256 = "178c367a61c1039e44e17c56fcc4a6e7dc11b33561261382d419b6ddb4401810";
  };

  propagatedBuildInputs = [ ipython toml ];
  checkInputs = [ mock ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  meta = with lib; {
    homepage = "https://github.com/gotcha/ipdb";
    description = "IPython-enabled pdb";
    license = licenses.bsd0;
    maintainers = [ maintainers.costrouc ];
  };

}