2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
, pytest7CheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-10-19 13:55:26 +00:00
|
|
|
, 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=";
|
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"jsonschema"
|
|
|
|
"pyyaml"
|
|
|
|
"termcolor"
|
|
|
|
];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools # needs pkg_resources at runtime
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
jinja2
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"barectf"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest7CheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generator of ANSI C tracers which output CTF data streams ";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "barectf";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/efficios/barectf";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Madouura ];
|
|
|
|
};
|
|
|
|
}
|