8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
54 lines
897 B
Nix
54 lines
897 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dataclasses
|
|
, fetchPypi
|
|
, jedi
|
|
, pygments
|
|
, urwid
|
|
, urwid-readline
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pudb";
|
|
version = "2022.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2zvdZkI8nSkHTBwsSfyyJL0Nbwgxn+0bTn6taDkUCD8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
jedi
|
|
pygments
|
|
urwid
|
|
urwid-readline
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
dataclasses
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pudb"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A full-screen, console-based Python debugger";
|
|
homepage = "https://github.com/inducer/pudb";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|