2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-10-15 22:30:08 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ipython
|
|
|
|
, isPyPy
|
2020-11-06 05:30:48 +01:00
|
|
|
, isPy27
|
2020-11-06 05:53:31 +01:00
|
|
|
, mock
|
2018-10-15 22:30:08 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipdb";
|
2020-10-25 10:06:53 +01:00
|
|
|
version = "0.13.4";
|
2020-11-06 05:30:48 +01:00
|
|
|
disabled = isPyPy || isPy27; # setupterm: could not find terminfo database
|
2018-10-15 22:30:08 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 10:06:53 +01:00
|
|
|
sha256 = "c85398b5fb82f82399fc38c44fe3532c0dde1754abee727d8f5cfcc74547b334";
|
2018-10-15 22:30:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ipython ];
|
2020-11-06 05:53:31 +01:00
|
|
|
checkInputs = [ mock ];
|
2018-10-15 22:30:08 +02:00
|
|
|
|
2019-04-08 20:27:32 +02:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-03 08:23:48 +01:00
|
|
|
homepage = "https://github.com/gotcha/ipdb";
|
2018-10-15 22:30:08 +02:00
|
|
|
description = "IPython-enabled pdb";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|