nixpkgs/pkgs/development/python-modules/barectf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1016 B
Nix
Raw Normal View History

2023-10-02 05:57:40 +00:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
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=";
};
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
];
pythonImportsCheck = [ "barectf" ];
nativeCheckInputs = [ pytest7CheckHook ];
2023-10-02 05:57:40 +00:00
meta = with lib; {
description = "Generator of ANSI C tracers which output CTF data streams";
mainProgram = "barectf";
2023-10-02 05:57:40 +00:00
homepage = "https://github.com/efficios/barectf";
license = licenses.mit;
maintainers = with maintainers; [ Madouura ];
};
}