Skip to content

Commit

Permalink
sigma-cli: init at 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Mar 12, 2022
1 parent a5615d4 commit 2e0fce9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/tools/security/sigma-cli/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e0fce9

Please sign in to comment.