1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pythonOlder,
decorator,
ipython,
isPyPy,
exceptiongroup,
tomli,
setuptools,
pytestCheckHook,
pytest-timeout,
}:
buildPythonPackage rec {
pname = "ipdb";
version = "0.13.13";
pyproject = true;
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") [
exceptiongroup
tomli
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTestPaths = [
# OSError: pytest: reading from stdin while output is captured! Consider using `-s`.
"manual_test.py"
]
++ lib.optionals (pythonAtLeast "3.13") [
# tests get stuck
"tests/test_opts.py"
];
meta = {
homepage = "https://github.com/gotcha/ipdb";
description = "IPython-enabled pdb";
mainProgram = "ipdb3";
license = lib.licenses.bsd0;
maintainers = [ ];
};
}
|