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
68
69
|
{ 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";
format = "setuptools";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "stack_data";
rev = "v${version}";
hash = "sha256-brXFrk1UU5hxCVeRvGK7wzRA0Hoj9fgqoxTIwInPrEc=";
};
nativeBuildInputs = [
git
setuptools-scm
toml
];
propagatedBuildInputs = [
asttokens
executing
pure-eval
];
nativeCheckInputs = [
cython
littleutils
pygments
pytestCheckHook
typeguard
];
# https://github.com/alexmojaki/stack_data/issues/50
# incompatible with typeguard>=3
doCheck = false;
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/";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}
|