Files
nixpkgs/pkgs/development/python-modules/barectf/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
960 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 = {
description = "Generator of ANSI C tracers which output CTF data streams";
mainProgram = "barectf";
homepage = "https://github.com/efficios/barectf";
license = lib.licenses.mit;
};
}