depot/third_party/nixpkgs/pkgs/development/python-modules/pudb/default.nix

53 lines
936 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
jedi,
pygments,
urwid,
urwid-readline,
pytest-mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pudb";
version = "2024.1.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-/19TleNqGaZfIvUi/WAn0no2q3g95FEbQckUhKthSXU=";
};
propagatedBuildInputs = [
jedi
pygments
urwid
urwid-readline
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [ "pudb" ];
meta = with lib; {
description = "Full-screen, console-based Python debugger";
mainProgram = "pudb";
homepage = "https://github.com/inducer/pudb";
changelog = "https://github.com/inducer/pudb/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}