5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
51 lines
842 B
Nix
51 lines
842 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, decorator
|
|
, ipython
|
|
, isPyPy
|
|
, tomli
|
|
, setuptools
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipdb";
|
|
version = "0.13.13";
|
|
format = "pyproject";
|
|
|
|
disabled = isPyPy; # setupterm: could not find terminfo database
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-46xgGO8FEm1EKvaAqthjAG7BnQIpBWGsiLixwLDPxyY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ipython
|
|
decorator
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
tomli
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/gotcha/ipdb";
|
|
description = "IPython-enabled pdb";
|
|
license = licenses.bsd0;
|
|
maintainers = [ ];
|
|
};
|
|
|
|
}
|