1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytest7CheckHook,
7 pythonRelaxDepsHook,
8 setuptools,
9 jsonschema,
10 pyyaml,
11 jinja2,
12 termcolor,
13}:
14
15buildPythonPackage rec {
16 pname = "barectf";
17 version = "3.1.2";
18 format = "pyproject";
19
20 src = fetchFromGitHub {
21 owner = "efficios";
22 repo = "barectf";
23 rev = "v${version}";
24 hash = "sha256-JelFfd3WS012dveNlIljhLdyPmgE9VEOXoZE3MBA/Gw=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 pythonRelaxDepsHook
30 ];
31
32 pythonRelaxDeps = [
33 "jsonschema"
34 "pyyaml"
35 "termcolor"
36 ];
37
38 propagatedBuildInputs = [
39 setuptools # needs pkg_resources at runtime
40 jsonschema
41 pyyaml
42 jinja2
43 termcolor
44 ];
45
46 pythonImportsCheck = [ "barectf" ];
47
48 nativeCheckInputs = [ pytest7CheckHook ];
49
50 meta = with lib; {
51 description = "Generator of ANSI C tracers which output CTF data streams ";
52 mainProgram = "barectf";
53 homepage = "https://github.com/efficios/barectf";
54 license = licenses.mit;
55 maintainers = with maintainers; [ Madouura ];
56 };
57}