nixpkgs-suyu/pkgs/tools/security/sigma-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1 KiB
Nix
Raw Normal View History

2022-03-12 12:16:53 +01:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "sigma-cli";
2022-04-14 16:59:39 +02:00
version = "0.4.2";
2022-03-12 12:16:53 +01:00
format = "pyproject";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = pname;
rev = "v${version}";
2022-04-14 16:59:39 +02:00
hash = "sha256-UA28A/C7RyIs96a/U98WpkgeCotT4qmpZwvO3HYUE9Q=";
2022-03-12 12:16:53 +01:00
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
click
prettytable
pysigma
pysigma-backend-splunk
2022-04-14 16:59:39 +02:00
pysigma-backend-insightidr
2022-03-12 12:16:53 +01:00
pysigma-pipeline-crowdstrike
pysigma-pipeline-sysmon
2022-04-14 16:59:39 +02:00
pysigma-pipeline-windows
2022-03-12 12:16:53 +01:00
];
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 ];
};
}