diff --git a/pkgs/development/python-modules/debuglater/default.nix b/pkgs/development/python-modules/debuglater/default.nix new file mode 100644 index 000000000000..6adbde7f5134 --- /dev/null +++ b/pkgs/development/python-modules/debuglater/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, colorama +, dill +, fetchFromGitHub +, numpy +, pandas +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "debuglater"; + version = "1.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ploomber"; + repo = pname; + rev = version; + hash = "sha256-n/Q6yt3q/+6QCGWNmaFrUK/phba6IVu42DMcvVj4vb0="; + }; + + propagatedBuildInputs = [ + colorama + ]; + + passthru.optional-dependencies = { + all = [ + dill + ]; + }; + + checkInputs = [ + numpy + pandas + pytestCheckHook + ] ++ passthru.optional-dependencies.all; + + pythonImportsCheck = [ + "debuglater" + ]; + + meta = with lib; { + description = "Module for post-mortem debugging of Python programs"; + homepage = "https://github.com/ploomber/debuglater"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6f90e3ca8388..6b62667af39e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2234,6 +2234,8 @@ in { debugpy = callPackage ../development/python-modules/debugpy { }; + debuglater = callPackage ../development/python-modules/debuglater { }; + decli = callPackage ../development/python-modules/decli { }; decorator = callPackage ../development/python-modules/decorator { };