mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
sigma-cli: init at 0.3.0
This commit is contained in:
parent
a5615d445e
commit
2e0fce9838
50
pkgs/tools/security/sigma-cli/default.nix
Normal file
50
pkgs/tools/security/sigma-cli/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user