depot/third_party/nixpkgs/pkgs/development/python-modules/debuglater/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

48 lines
985 B
Nix

{
lib,
buildPythonPackage,
colorama,
dill,
fetchFromGitHub,
numpy,
pandas,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "debuglater";
version = "1.4.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ploomber";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-o9IAk3EN8ghEft7Y7Xx+sEjWMNgoyiZ0eiBqnCyXkm8=";
};
propagatedBuildInputs = [ colorama ];
optional-dependencies = {
all = [ dill ];
};
nativeCheckInputs = [
numpy
pandas
pytestCheckHook
] ++ optional-dependencies.all;
pythonImportsCheck = [ "debuglater" ];
meta = with lib; {
description = "Module for post-mortem debugging of Python programs";
homepage = "https://github.com/ploomber/debuglater";
changelog = "https://github.com/ploomber/debuglater/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}