45 lines
893 B
Nix
45 lines
893 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, poetry-core
|
||
|
, pytestCheckHook
|
||
|
, 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 ];
|
||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
setuptools # needs pkg_resources at runtime
|
||
|
jsonschema
|
||
|
pyyaml
|
||
|
jinja2
|
||
|
termcolor
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "barectf" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Generator of ANSI C tracers which output CTF data streams ";
|
||
|
homepage = "https://github.com/efficios/barectf";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ Madouura ];
|
||
|
};
|
||
|
}
|