about summary refs log tree commit diff
path: root/pkgs/development/python-modules/barectf/default.nix
blob: ed9be93dd0217f6a5dced4f2cd2f98696ac57b1c (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest7CheckHook
, pythonRelaxDepsHook
, setuptools
, jsonschema
, pyyaml
, jinja2
, termcolor
}:

buildPythonPackage rec {
  pname = "barectf";
  version = "3.1.2";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "efficios";
    repo = "barectf";
    rev = "v${version}";
    hash = "sha256-JelFfd3WS012dveNlIljhLdyPmgE9VEOXoZE3MBA/Gw=";
  };

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "jsonschema"
    "pyyaml"
    "termcolor"
  ];

  propagatedBuildInputs = [
    setuptools # needs pkg_resources at runtime
    jsonschema
    pyyaml
    jinja2
    termcolor
  ];

  pythonImportsCheck = [
    "barectf"
  ];

  nativeCheckInputs = [
    pytest7CheckHook
  ];

  meta = with lib; {
    description = "Generator of ANSI C tracers which output CTF data streams ";
    mainProgram = "barectf";
    homepage = "https://github.com/efficios/barectf";
    license = licenses.mit;
    maintainers = with maintainers; [ Madouura ];
  };
}