summary refs log tree commit diff
path: root/pkgs/development/python-modules/stack-data/default.nix
blob: eb9879a4bf02d729b0b6b08bf8bcb692ed885d66 (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
{ asttokens
, buildPythonPackage
, cython
, executing
, fetchFromGitHub
, git
, lib
, littleutils
, pure-eval
, pygments
, pytestCheckHook
, setuptools-scm
, toml
, typeguard
}:

buildPythonPackage rec {
  pname = "stack-data";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "alexmojaki";
    repo = "stack_data";
    rev = "v${version}";
    sha256 = "sha256-brXFrk1UU5hxCVeRvGK7wzRA0Hoj9fgqoxTIwInPrEc=";
  };

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  nativeBuildInputs = [
    git
    setuptools-scm
    toml
  ];

  propagatedBuildInputs = [
    asttokens
    executing
    pure-eval
  ];

  checkInputs = [
    cython
    littleutils
    pygments
    pytestCheckHook
    typeguard
  ];

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

  pythonImportsCheck = [ "stack_data" ];

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