2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytest7CheckHook,
|
|
|
|
setuptools,
|
|
|
|
jsonschema,
|
|
|
|
pyyaml,
|
|
|
|
jinja2,
|
|
|
|
termcolor,
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"jsonschema"
|
|
|
|
"pyyaml"
|
|
|
|
"termcolor"
|
|
|
|
];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools # needs pkg_resources at runtime
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
jinja2
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "barectf" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytest7CheckHook ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-07-27 06:49:29 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|