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