at 23.05-pre 56 lines 1.2 kB view raw
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "sigma-cli"; 8 version = "0.5.3"; 9 format = "pyproject"; 10 11 src = fetchFromGitHub { 12 owner = "SigmaHQ"; 13 repo = pname; 14 rev = "refs/tags/v${version}"; 15 hash = "sha256-orJkWVBZnbhRjYDI6s5fPymzpTmZE5MsmYWp3JOKjnU="; 16 }; 17 18 nativeBuildInputs = with python3.pkgs; [ 19 poetry-core 20 ]; 21 22 propagatedBuildInputs = with python3.pkgs; [ 23 click 24 prettytable 25 pysigma 26 pysigma-backend-elasticsearch 27 pysigma-backend-insightidr 28 pysigma-backend-opensearch 29 pysigma-backend-qradar 30 pysigma-backend-splunk 31 pysigma-pipeline-crowdstrike 32 pysigma-pipeline-sysmon 33 pysigma-pipeline-windows 34 ]; 35 36 checkInputs = with python3.pkgs; [ 37 pytestCheckHook 38 ]; 39 40 postPatch = '' 41 substituteInPlace pyproject.toml \ 42 --replace '= "^' '= ">=' 43 ''; 44 45 pythonImportsCheck = [ 46 "sigma.cli" 47 ]; 48 49 meta = with lib; { 50 description = "Sigma command line interface"; 51 homepage = "https://github.com/SigmaHQ/sigma-cli"; 52 license = with licenses; [ lgpl21Plus ]; 53 maintainers = with maintainers; [ fab ]; 54 mainProgram = "sigma"; 55 }; 56}