summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debuglater/default.nix
blob: 31cc01f860ef68fab2d3fc9f3e70e7df16ccacad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  colorama,
  dill,
  fetchFromGitHub,
  numpy,
  pandas,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "debuglater";
  version = "1.4.4";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ploomber";
    repo = "debuglater";
    tag = version;
    hash = "sha256-o9IAk3EN8ghEft7Y7Xx+sEjWMNgoyiZ0eiBqnCyXkm8=";
  };

  propagatedBuildInputs = [ colorama ];

  optional-dependencies = {
    all = [ dill ];
  };

  nativeCheckInputs = [
    numpy
    pandas
    pytestCheckHook
  ]
  ++ optional-dependencies.all;

  pythonImportsCheck = [ "debuglater" ];

  meta = {
    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 = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}