about summary refs log tree commit diff
path: root/pkgs/development/python-modules/stack-data/default.nix
blob: a3fe6964f755ee8da26bb2a69cf0a4fcd38c6e5f (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ asttokens
, buildPythonPackage
, cython
, executing
, fetchFromGitHub
, lib
, littleutils
, pure-eval
, pygments
, pytestCheckHook
, setuptools-scm
, typeguard
, setuptools
, wheel
}:

buildPythonPackage rec {
  pname = "stack-data";
  version = "0.6.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "alexmojaki";
    repo = "stack_data";
    rev = "refs/tags/v${version}";
    hash = "sha256-dmBhfCg60KX3gWp3k1CGRxW14z3BLlair0PjLW9HFYo=";
  };

  build-system = [
    setuptools
    setuptools-scm
    wheel
  ];

  nativeCheckInputs = [
    cython
    littleutils
    pygments
    pytestCheckHook
    typeguard
  ];

  dependencies = [
    asttokens
    executing
    pure-eval
  ];

  disabledTests = [
    # AssertionError
    "test_example"
    "test_executing_style_defs"
    "test_pygments_example"
    "test_variables"
  ];

  pythonImportsCheck = [ "stack_data" ];

  meta = with lib; {
    description = "Extract data from stack frames and tracebacks";
    homepage = "https://github.com/alexmojaki/stack_data/";
    changelog = "https://github.com/alexmojaki/stack_data/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ jluttine ];
    mainProgram = "stack-data";
  };
}