1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, decorator
6, ipython
7, isPyPy
8, tomli
9, setuptools
10, unittestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "ipdb";
15 version = "0.13.13";
16 format = "pyproject";
17
18 disabled = isPyPy; # setupterm: could not find terminfo database
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-46xgGO8FEm1EKvaAqthjAG7BnQIpBWGsiLixwLDPxyY=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 ];
28
29 propagatedBuildInputs = [
30 ipython
31 decorator
32 ] ++ lib.optionals (pythonOlder "3.11") [
33 tomli
34 ];
35
36 nativeCheckInputs = [
37 unittestCheckHook
38 ];
39
40 preCheck = ''
41 export HOME=$(mktemp -d)
42 '';
43
44 meta = with lib; {
45 homepage = "https://github.com/gotcha/ipdb";
46 description = "IPython-enabled pdb";
47 license = licenses.bsd0;
48 maintainers = [ maintainers.costrouc ];
49 };
50
51}