2023-10-02 05:57:40 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
2024-03-24 22:43:24 +00:00
|
|
|
pytest7CheckHook,
|
2023-10-02 05:57:40 +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=";
|
|
|
|
};
|
|
|
|
|
2023-12-01 00:55:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"jsonschema"
|
|
|
|
"pyyaml"
|
|
|
|
"termcolor"
|
|
|
|
];
|
2023-10-02 05:57:40 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools # needs pkg_resources at runtime
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
jinja2
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
2023-12-01 00:55:23 +00:00
|
|
|
pythonImportsCheck = [ "barectf" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytest7CheckHook ];
|
2024-03-17 21:46:28 +00:00
|
|
|
|
2023-10-02 05:57:40 +00:00
|
|
|
meta = with lib; {
|
2024-07-26 00:18:51 +00:00
|
|
|
description = "Generator of ANSI C tracers which output CTF data streams";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "barectf";
|
2023-10-02 05:57:40 +00:00
|
|
|
homepage = "https://github.com/efficios/barectf";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Madouura ];
|
|
|
|
};
|
|
|
|
}
|