1{ lib
2, buildPythonPackage
3, dataclasses
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 = "2022.1.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-a4OrgFvdtTcQEJaQoiN+mL+DwLOgADPFF8319qj6Rw0=";
24 };
25
26 propagatedBuildInputs = [
27 jedi
28 pygments
29 urwid
30 urwid-readline
31 ] ++ lib.optionals (pythonOlder "3.7") [
32 dataclasses
33 ];
34
35 checkInputs = [
36 pytest-mock
37 pytestCheckHook
38 ];
39
40 preCheck = ''
41 export HOME=$TMPDIR
42 '';
43
44 pythonImportsCheck = [
45 "pudb"
46 ];
47
48 meta = with lib; {
49 description = "A full-screen, console-based Python debugger";
50 homepage = "https://github.com/inducer/pudb";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}