1{ asttokens
2, buildPythonPackage
3, cython
4, executing
5, fetchFromGitHub
6, git
7, lib
8, littleutils
9, pure-eval
10, pygments
11, pytestCheckHook
12, setuptools-scm
13, toml
14, typeguard
15}:
16
17buildPythonPackage rec {
18 pname = "stack-data";
19 version = "0.2.0";
20
21 src = fetchFromGitHub {
22 owner = "alexmojaki";
23 repo = "stack_data";
24 rev = "v${version}";
25 hash = "sha256-brXFrk1UU5hxCVeRvGK7wzRA0Hoj9fgqoxTIwInPrEc=";
26 };
27
28 SETUPTOOLS_SCM_PRETEND_VERSION = version;
29
30 nativeBuildInputs = [
31 git
32 setuptools-scm
33 toml
34 ];
35
36 propagatedBuildInputs = [
37 asttokens
38 executing
39 pure-eval
40 ];
41
42 nativeCheckInputs = [
43 cython
44 littleutils
45 pygments
46 pytestCheckHook
47 typeguard
48 ];
49
50 # https://github.com/alexmojaki/stack_data/issues/50
51 # incompatible with typeguard>=3
52 doCheck = false;
53
54 disabledTests = [
55 # AssertionError
56 "test_example"
57 "test_executing_style_defs"
58 "test_pygments_example"
59 "test_variables"
60 ];
61
62 pythonImportsCheck = [ "stack_data" ];
63
64 meta = with lib; {
65 description = "Extract data from stack frames and tracebacks";
66 homepage = "https://github.com/alexmojaki/stack_data/";
67 license = licenses.mit;
68 maintainers = with maintainers; [ jluttine ];
69 };
70}