depot/third_party/nixpkgs/pkgs/development/python-modules/pudb/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

55 lines
909 B
Nix

{ lib
, buildPythonPackage
, dataclasses
, isPy3k
, fetchPypi
, jedi
, pygments
, urwid
, urwid-readline
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pudb";
version = "2022.1";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "e827a4b489dcad561189535db6677becbf32164b2b44df00786eb2d5e00c587e";
};
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; [ ];
};
}