1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 jedi,
6 pygments,
7 urwid,
8 urwid-readline,
9 pytest-mock,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "pudb";
16 version = "2024.1";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-/J1ql2pZtZB2TIN57CAP7NR/qoQlm2Tv2M2GBmoK8zg=";
24 };
25
26 propagatedBuildInputs = [
27 jedi
28 pygments
29 urwid
30 urwid-readline
31 ];
32
33 nativeCheckInputs = [
34 pytest-mock
35 pytestCheckHook
36 ];
37
38 preCheck = ''
39 export HOME=$TMPDIR
40 '';
41
42 pythonImportsCheck = [ "pudb" ];
43
44 meta = with lib; {
45 description = "A full-screen, console-based Python debugger";
46 mainProgram = "pudb";
47 homepage = "https://github.com/inducer/pudb";
48 changelog = "https://github.com/inducer/pudb/releases/tag/v${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ ];
51 };
52}