summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-03-15 09:42:01 +0100
committerVladimír Čunát <v@cunat.cz>2022-03-15 09:52:04 +0100
commitf48c1fda6b457520c1214b29992af0c0c9872b6c (patch)
tree1bb43ae46bf2c035c48361c764ad4c5995881a10 /pkgs/tools/security
parent415d23fb4d2b2823a87d410da9beef8332d82d7b (diff)
parentaa6313a23d749f0d73f91af35a2fe15e74501451 (diff)
downloadnixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.tar
nixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.tar.gz
nixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.tar.bz2
nixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.tar.lz
nixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.tar.xz
nixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.tar.zst
nixpkgs-f48c1fda6b457520c1214b29992af0c0c9872b6c.zip
Merge branch 'master' into staging-next
Conflict in pkgs/development/libraries/libvirt/default.nix
required manual adjustments.  The fetched patch is already in src.
I checked that libvirt builds.
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/sigma-cli/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/security/sigma-cli/default.nix b/pkgs/tools/security/sigma-cli/default.nix
new file mode 100644
index 00000000000..3bf4e788912
--- /dev/null
+++ b/pkgs/tools/security/sigma-cli/default.nix
@@ -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 ];
+  };
+}