2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:30:08 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-12-30 19:13:19 +00:00
|
|
|
, pythonOlder
|
|
|
|
, decorator
|
2018-10-15 20:30:08 +00:00
|
|
|
, ipython
|
|
|
|
, isPyPy
|
2022-12-30 19:13:19 +00:00
|
|
|
, tomli
|
|
|
|
, setuptools
|
|
|
|
, unittestCheckHook
|
2018-10-15 20:30:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipdb";
|
2022-12-30 19:13:19 +00:00
|
|
|
version = "0.13.11";
|
|
|
|
format = "pyproject";
|
|
|
|
|
2021-06-07 14:23:47 +00:00
|
|
|
disabled = isPyPy; # setupterm: could not find terminfo database
|
2018-10-15 20:30:08 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-30 19:13:19 +00:00
|
|
|
hash = "sha256-wjtnNvAf1Fhswuy+vfeaXrRUeWhT4c2PLtO3uR1KPpM=";
|
2018-10-15 20:30:08 +00:00
|
|
|
};
|
|
|
|
|
2022-12-30 19:13:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipython
|
|
|
|
decorator
|
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-30 19:13:19 +00:00
|
|
|
unittestCheckHook
|
|
|
|
];
|
2018-10-15 20:30:08 +00:00
|
|
|
|
2019-04-08 18:27:32 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-03 07:23:48 +00:00
|
|
|
homepage = "https://github.com/gotcha/ipdb";
|
2018-10-15 20:30:08 +00:00
|
|
|
description = "IPython-enabled pdb";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|