1{ lib
2, buildPythonPackage
3, fetchPypi
4, jedi
5, pygments
6, urwid
7, urwid-readline
8, pytest-mock
9, pytestCheckHook
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "pudb";
15 version = "2023.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-Fd88YDq6h6kYpmbvjhv2P3ZCOMw1ids8W3pfGwHqLwM=";
23 };
24
25 propagatedBuildInputs = [
26 jedi
27 pygments
28 urwid
29 urwid-readline
30 ];
31
32 nativeCheckInputs = [
33 pytest-mock
34 pytestCheckHook
35 ];
36
37 preCheck = ''
38 export HOME=$TMPDIR
39 '';
40
41 pythonImportsCheck = [
42 "pudb"
43 ];
44
45 meta = with lib; {
46 description = "A full-screen, console-based Python debugger";
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}