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