depot/third_party/nixpkgs/pkgs/development/python-modules/barectf/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

55 lines
1,016 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest7CheckHook,
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
];
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 ];
};
}