1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 setuptools,
7 numpy,
8
9 pytestCheckHook,
10}:
11buildPythonPackage rec {
12 pname = "stackprinter";
13 version = "0.2.12";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "cknd";
18 repo = "stackprinter";
19 tag = version;
20 hash = "sha256-Offow68i2Nh65sh5ZowlSdV1SKF2RIfwlRv4z1bCu+k=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 numpy
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "stackprinter"
37 "stackprinter.colorschemes"
38 "stackprinter.extraction"
39 "stackprinter.formatting"
40 "stackprinter.frame_formatting"
41 "stackprinter.prettyprinting"
42 "stackprinter.source_inspection"
43 "stackprinter.tracing"
44 "stackprinter.utils"
45 ];
46
47 meta = {
48 description = "Debugging-friendly exceptions for Python";
49 homepage = "https://github.com/cknd/stackprinter";
50 changelog = "https://github.com/cknd/stackprinter/releases/tag/${version}";
51 license = lib.licenses.mit;
52 maintainers = [ lib.maintainers.ryand56 ];
53 };
54}