nixpkgs/pkgs/development/python-modules/ipdb/default.nix

35 lines
666 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, ipython
, isPyPy
2020-11-06 04:30:48 +00:00
, isPy27
, mock
}:
buildPythonPackage rec {
pname = "ipdb";
2021-03-24 09:28:14 +00:00
version = "0.13.7";
2020-11-06 04:30:48 +00:00
disabled = isPyPy || isPy27; # setupterm: could not find terminfo database
src = fetchPypi {
inherit pname version;
2021-03-24 09:28:14 +00:00
sha256 = "178c367a61c1039e44e17c56fcc4a6e7dc11b33561261382d419b6ddb4401810";
};
propagatedBuildInputs = [ ipython ];
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 ];
};
}