at master 966 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest7CheckHook, 7 setuptools, 8 jsonschema, 9 pyyaml, 10 jinja2, 11 termcolor, 12}: 13 14buildPythonPackage rec { 15 pname = "barectf"; 16 version = "3.1.2"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "efficios"; 21 repo = "barectf"; 22 rev = "v${version}"; 23 hash = "sha256-JelFfd3WS012dveNlIljhLdyPmgE9VEOXoZE3MBA/Gw="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 pythonRelaxDeps = [ 31 "jsonschema" 32 "pyyaml" 33 "termcolor" 34 ]; 35 36 propagatedBuildInputs = [ 37 setuptools # needs pkg_resources at runtime 38 jsonschema 39 pyyaml 40 jinja2 41 termcolor 42 ]; 43 44 pythonImportsCheck = [ "barectf" ]; 45 46 nativeCheckInputs = [ pytest7CheckHook ]; 47 48 meta = with lib; { 49 description = "Generator of ANSI C tracers which output CTF data streams"; 50 mainProgram = "barectf"; 51 homepage = "https://github.com/efficios/barectf"; 52 license = licenses.mit; 53 }; 54}