sigma-cli: init at 0.3.0

This commit is contained in:
Fabian Affolter 2022-03-12 12:16:53 +01:00
parent a5615d445e
commit 2e0fce9838
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "sigma-cli";
version = "0.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = pname;
rev = "v${version}";
hash = "sha256-Nfd78Y35naDTzwodcdvJr/02CptcHxS717VGsR/QOuI=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
click
prettytable
pysigma
pysigma-backend-splunk
pysigma-pipeline-crowdstrike
pysigma-pipeline-sysmon
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'prettytable = "^3.1.1"' 'prettytable = "*"'
'';
pythonImportsCheck = [
"sigma.cli"
];
meta = with lib; {
description = "Sigma command line interface";
homepage = "https://github.com/SigmaHQ/sigma-cli";
license = with licenses; [ lgpl21Plus ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9831,6 +9831,8 @@ with pkgs;
slither-analyzer = with python3Packages; toPythonApplication slither-analyzer;
sigma-cli = callPackage ../tools/security/sigma-cli { };
signify = callPackage ../tools/security/signify { };
# aka., pgp-tools