diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-10 05:45:01 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-11 01:54:19 +0200 |
commit | f3def87b056debbf28710f07389f932290300b81 (patch) | |
tree | ed19628afc062277f369e45bc412dff242ba4a34 /pkgs/development/python-modules/pudb | |
parent | 3157f9a4041dc2618eeb5e6dc18f3d66ed86c7b6 (diff) |
python3Packages.pudb: fix build, enable tests
Diffstat (limited to 'pkgs/development/python-modules/pudb')
-rw-r--r-- | pkgs/development/python-modules/pudb/default.nix | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/pudb/default.nix b/pkgs/development/python-modules/pudb/default.nix index 6df85ca5f089b..3459c5c99742f 100644 --- a/pkgs/development/python-modules/pudb/default.nix +++ b/pkgs/development/python-modules/pudb/default.nix @@ -1,29 +1,43 @@ { lib , buildPythonPackage +, isPy3k , fetchPypi +, jedi , pygments , urwid -, isPy3k +, pytest-mock +, pytestCheckHook }: buildPythonPackage rec { pname = "pudb"; version = "2021.1"; + disabled = !isPy3k; src = fetchPypi { inherit pname version; sha256 = "309ee82b45a0ffca0bc4c7f521fd3e357589c764f339bdf9dcabb7ad40692d6e"; }; - propagatedBuildInputs = [ pygments urwid ]; + propagatedBuildInputs = [ + jedi + pygments + urwid + ]; - # Tests fail on python 3 due to writes to the read-only home directory - doCheck = !isPy3k; + preCheck = '' + export HOME=$TMPDIR + ''; + + checkInputs = [ + pytest-mock + pytestCheckHook + ]; meta = with lib; { description = "A full-screen, console-based Python debugger"; + homepage = "https://github.com/inducer/pudb"; license = licenses.mit; - platforms = platforms.all; + maintainers = with maintainers; [ ]; }; - } |