From 144d7eb0ef698ae2a8c73bea544bac2dc5e6454f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Aug 2022 21:40:19 +0200 Subject: [PATCH] python310Packages.debuglater: init at 1.4.1 --- .../python-modules/debuglater/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/debuglater/default.nix 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 { };