From 07d9127c3c451ef49d87720130e6d3b6002975b4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 17:49:13 +0100 Subject: [PATCH 01/23] python313Packages.diskcache-stubs: init at 5.6.3.6 Diskcache stubs https://github.com/phi-friday/diskcache-stubs --- .../diskcache-stubs/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/diskcache-stubs/default.nix diff --git a/pkgs/development/python-modules/diskcache-stubs/default.nix b/pkgs/development/python-modules/diskcache-stubs/default.nix new file mode 100644 index 000000000000..c4d07ea702e1 --- /dev/null +++ b/pkgs/development/python-modules/diskcache-stubs/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + typing-extensions, +}: + +buildPythonPackage rec { + pname = "diskcache-stubs"; + version = "5.6.3.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "phi-friday"; + repo = "diskcache-stubs"; + tag = "v${version}"; + hash = "sha256-yYds/00K9XyJirreBGG/r30HZTyBQbFa6N4EizsmdKg="; + }; + + build-system = [ hatchling ]; + + dependencies = [ typing-extensions ]; + + pythonImportsCheck = [ "diskcache-stubs" ]; + + # Module has no tests + doCheck = false; + + meta = { + description = "Diskcache stubs"; + homepage = "https://github.com/phi-friday/diskcache-stubs"; + changelog = "https://github.com/phi-friday/diskcache-stubs/releases/tag/${src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aa3fbf20a8f3..6ce0749780a0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3869,6 +3869,8 @@ self: super: with self; { diskcache = callPackage ../development/python-modules/diskcache { }; + diskcache-stubs = callPackage ../development/python-modules/diskcache-stubs { }; + disnake = callPackage ../development/python-modules/disnake { }; disposable-email-domains = callPackage ../development/python-modules/disposable-email-domains { }; From 094cbc69de005bda99a7894539bbd7b1b165bf62 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 18:03:07 +0100 Subject: [PATCH 02/23] python313Packages.pysigma: 0.11.23 -> 1.0.2 Changelog: https://github.com/SigmaHQ/pySigma/releases/tag/v1.0.2 --- .../python-modules/pysigma/default.nix | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pysigma/default.nix b/pkgs/development/python-modules/pysigma/default.nix index 2c45b9d91e3f..a635a6135f9c 100644 --- a/pkgs/development/python-modules/pysigma/default.nix +++ b/pkgs/development/python-modules/pysigma/default.nix @@ -1,52 +1,70 @@ { lib, buildPythonPackage, + diskcache-stubs, + diskcache, fetchFromGitHub, jinja2, packaging, poetry-core, pyparsing, pytestCheckHook, - pythonOlder, pyyaml, requests, + types-pyyaml, + typing-extensions, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "pysigma"; - version = "0.11.23"; + version = "1.0.2"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma"; tag = "v${version}"; - hash = "sha256-mRDevojeVHgp66RTB90XXeEGP8LYlWCLGmAMv9DW3SA="; + hash = "sha256-s/czHIwQzcDvK6PBEFflYnT0S97qDUoYiH5ZPlnhMGE="; }; pythonRelaxDeps = [ + "diskcache-stubs" "jinja2" "packaging" + "pyparsing" + "types-pyyaml" ]; build-system = [ poetry-core ]; dependencies = [ + diskcache + diskcache-stubs jinja2 packaging pyparsing pyyaml requests + types-pyyaml + typing-extensions ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; disabledTests = [ # Tests require network connection "test_sigma_plugin_directory_default" + "test_sigma_plugin_directory_get_plugins_compatible" + "test_sigma_plugin_find_compatible_version" "test_sigma_plugin_installation" + "test_sigma_plugin_pysigma_version_from_pypi" + "test_sigma_plugin_version_compatible" + "test_validator_valid_attack_tags_online" + "test_validator_valid_d3fend_tags_online" ]; pythonImportsCheck = [ "sigma" ]; @@ -54,8 +72,8 @@ buildPythonPackage rec { meta = { description = "Library to parse and convert Sigma rules into queries"; homepage = "https://github.com/SigmaHQ/pySigma"; - changelog = "https://github.com/SigmaHQ/pySigma/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl21Only ]; + changelog = "https://github.com/SigmaHQ/pySigma/releases/tag/${src.tag}"; + license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ fab ]; }; } From c055fa91e09381b1cb5ede96de957cc96e2f8806 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 18:12:52 +0100 Subject: [PATCH 03/23] python313Packages.pysigma-pipeline-sysmon: 1.0.4 -> 2.0.0 Diff: https://github.com/SigmaHQ/pySigma-pipeline-sysmon/compare/v1.0.4...v2.0.0 Changelog: https://github.com/SigmaHQ/pySigma-pipeline-sysmon/releases/tag/v2.0.0 --- .../python-modules/pysigma-pipeline-sysmon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix b/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix index 959330d49386..a6307f04e669 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pysigma-pipeline-sysmon"; - version = "1.0.4"; + version = "2.0.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "SigmaHQ"; repo = "pySigma-pipeline-sysmon"; tag = "v${version}"; - hash = "sha256-/WBHu1pFEiVPJQ97xEwjJJ92h9kHzTBPgmfQrR+RZjA="; + hash = "sha256-W0KNsawcJ1XmQ2Tmh+aD8EUL2LenCQUEUgx9shQhRDQ="; }; nativeBuildInputs = [ poetry-core ]; From 62d36dc8e2f1602f114eb9cd00bb0684a8c43704 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 18:14:15 +0100 Subject: [PATCH 04/23] python313Packages.pysigma-pipeline-sysmon: modernize --- .../pysigma-pipeline-sysmon/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix b/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix index a6307f04e669..2e779a3eb19b 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix @@ -5,7 +5,6 @@ poetry-core, pysigma, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { @@ -13,8 +12,6 @@ buildPythonPackage rec { version = "2.0.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-pipeline-sysmon"; @@ -22,9 +19,9 @@ buildPythonPackage rec { hash = "sha256-W0KNsawcJ1XmQ2Tmh+aD8EUL2LenCQUEUgx9shQhRDQ="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ pysigma ]; + dependencies = [ pysigma ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -33,8 +30,8 @@ buildPythonPackage rec { meta = { description = "Library to support Sysmon pipeline for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-pipeline-sysmon"; - changelog = "https://github.com/SigmaHQ/pySigma-pipeline-sysmon/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl21Only ]; + changelog = "https://github.com/SigmaHQ/pySigma-pipeline-sysmon/releases/tag/${src.tag}"; + license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ fab ]; }; } From 1c14d12196f8ab520f159f68fe787b0348b3a295 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 18:17:14 +0100 Subject: [PATCH 05/23] python313Packages.pysigma-backend-splunk: 1.1.3 -> 2.0.0 Diff: https://github.com/SigmaHQ/pySigma-backend-splunk/compare/v1.1.3...v2.0.0 Changelog: https://github.com/SigmaHQ/pySigma-backend-splunk/releases/tag/v2.0.0 --- .../pysigma-backend-splunk/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-splunk/default.nix b/pkgs/development/python-modules/pysigma-backend-splunk/default.nix index f772be562eab..96c1fc63a332 100644 --- a/pkgs/development/python-modules/pysigma-backend-splunk/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-splunk/default.nix @@ -6,21 +6,18 @@ pysigma, pysigma-pipeline-sysmon, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "pysigma-backend-splunk"; - version = "1.1.3"; + version = "2.0.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-backend-splunk"; tag = "v${version}"; - hash = "sha256-zDv04yHYQP2ZKX9g4v7kR8l3OmAyvh7GtmmqjxPtFvI="; + hash = "sha256-SiEESeF0YqPYDAK3OUEkqSHmn4uM5LQrCLOHvOy26Io="; }; nativeBuildInputs = [ poetry-core ]; @@ -37,8 +34,8 @@ buildPythonPackage rec { meta = { description = "Library to support Splunk for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-splunk"; - changelog = "https://github.com/SigmaHQ/pySigma-backend-splunk/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl21Only ]; - maintainers = with lib.maintainers; [ fab ]; + changelog = "https://github.com/SigmaHQ/pySigma-backend-splunk/releases/tag/${src.tag}"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ fab ]; }; } From 56b30b7dd5809446a3d444c6f9632c39c9ebba1d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 18:18:54 +0100 Subject: [PATCH 06/23] python313Packages.pysigma-pipeline-windows: 1.2.0 -> 2.0.0 Diff: https://github.com/SigmaHQ/pySigma-pipeline-windows/compare/v1.2.0...v2.0.0 Changelog: https://github.com/SigmaHQ/pySigma-pipeline-windows/releases/tag/v2.0.0 --- .../pysigma-pipeline-windows/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix b/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix index 9b7e000c22c5..f41fe5419e79 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix @@ -5,21 +5,18 @@ poetry-core, pysigma, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "pysigma-pipeline-windows"; - version = "1.2.0"; - format = "pyproject"; - - disabled = pythonOlder "3.8"; + version = "2.0.0"; + pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-pipeline-windows"; tag = "v${version}"; - hash = "sha256-Ss0OMd8urCYQUlvsm/m8Kz0jY4pVSEoZuLxs1JLWxQA="; + hash = "sha256-2S4vWneBNKq/FwhDs4Iref9hvEbcqvG/MOSTMYd7crU="; }; nativeBuildInputs = [ poetry-core ]; @@ -33,8 +30,8 @@ buildPythonPackage rec { meta = { description = "Library to support Windows service pipeline for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-pipeline-windows"; - changelog = "https://github.com/SigmaHQ/pySigma-pipeline-windows/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl21Only ]; - maintainers = with lib.maintainers; [ fab ]; + changelog = "https://github.com/SigmaHQ/pySigma-pipeline-windows/releases/tag/${src.tag}"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ fab ]; }; } From 4eb1743a081734d3555d208e068eabac84b93e3b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Dec 2025 20:18:52 +0100 Subject: [PATCH 07/23] python313Packages.pysigma-backend-qradar: modernize --- .../pysigma-backend-qradar/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-qradar/default.nix b/pkgs/development/python-modules/pysigma-backend-qradar/default.nix index 9adfe8e3303f..fdcb3ee6627a 100644 --- a/pkgs/development/python-modules/pysigma-backend-qradar/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-qradar/default.nix @@ -6,15 +6,12 @@ pysigma, pysigma-pipeline-sysmon, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "pysigma-backend-qradar"; version = "0.3.3"; - format = "pyproject"; - - disabled = pythonOlder "3.8"; + pyproject = true; src = fetchFromGitHub { owner = "nNipsx-Sec"; @@ -25,11 +22,9 @@ buildPythonPackage rec { pythonRelaxDeps = [ "pysigma" ]; - nativeBuildInputs = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ pysigma ]; + dependencies = [ pysigma ]; nativeCheckInputs = [ pysigma-pipeline-sysmon @@ -41,8 +36,8 @@ buildPythonPackage rec { meta = { description = "Library to support Qradar for pySigma"; homepage = "https://github.com/nNipsx-Sec/pySigma-backend-qradar"; - changelog = "https://github.com/nNipsx-Sec/pySigma-backend-qradar/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl21Only ]; - maintainers = with lib.maintainers; [ fab ]; + changelog = "https://github.com/nNipsx-Sec/pySigma-backend-qradar/releases/tag/${src.tag}"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ fab ]; }; } From 0e18fc471397a3991d940327718190bf6a0f7fc6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 20:32:57 +0100 Subject: [PATCH 08/23] python313Packages.pysigma-backend-loki: add myself as maintainer --- .../python-modules/pysigma-backend-loki/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pysigma-backend-loki/default.nix b/pkgs/development/python-modules/pysigma-backend-loki/default.nix index ce15a421ff00..85f37140a336 100644 --- a/pkgs/development/python-modules/pysigma-backend-loki/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-loki/default.nix @@ -37,6 +37,7 @@ buildPythonPackage rec { meta = { description = "Library to support the loki backend for pySigma"; homepage = "https://github.com/grafana/pySigma-backend-loki"; - license = with lib.licenses; [ lgpl21Only ]; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ fab ]; }; } From cfcb7956ab2debbc29a293dd46936d70f1792989 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:00:24 +0100 Subject: [PATCH 09/23] python313Packages.pysigma-backend-loki: 0.12.4 -> 0.13.0 --- .../python-modules/pysigma-backend-loki/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-loki/default.nix b/pkgs/development/python-modules/pysigma-backend-loki/default.nix index 85f37140a336..718448392362 100644 --- a/pkgs/development/python-modules/pysigma-backend-loki/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-loki/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "pysigma-backend-loki"; - version = "0.12.4"; + version = "0.13.0"; pyproject = true; src = fetchFromGitHub { owner = "grafana"; repo = "pySigma-backend-loki"; tag = "v${version}"; - hash = "sha256-2VgrIJocFtMFZCTyPQZcSnNJ5XgfD+nbmJ1wvesrQoE="; + hash = "sha256-36fdFuvUSAeGyV5z55/MGcdMiCNz12EbiRw87MjmaKY="; }; build-system = [ poetry-core ]; From 90ace887425a92fe3e302d4e8b686d2e8d320436 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:02:43 +0100 Subject: [PATCH 10/23] python313Packages.pysigma-pipeline-windows: modernize --- .../python-modules/pysigma-pipeline-windows/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix b/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix index f41fe5419e79..b1c6b0991f64 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix @@ -19,9 +19,9 @@ buildPythonPackage rec { hash = "sha256-2S4vWneBNKq/FwhDs4Iref9hvEbcqvG/MOSTMYd7crU="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ pysigma ]; + dependencies = [ pysigma ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -31,7 +31,7 @@ buildPythonPackage rec { description = "Library to support Windows service pipeline for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-pipeline-windows"; changelog = "https://github.com/SigmaHQ/pySigma-pipeline-windows/releases/tag/${src.tag}"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ fab ]; }; } From 44fc00c3402b4a2de4669d1bb3046dcc9414197c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:04:09 +0100 Subject: [PATCH 11/23] python313Packages.pysigma-backend-sqlite: update license entry --- .../python-modules/pysigma-backend-sqlite/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix b/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix index 64e2b7673388..5b07672b606d 100644 --- a/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { description = "Library to support sqlite for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-sqlite"; changelog = "https://github.com/SigmaHQ/pySigma-backend-sqlite/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl3Only ]; + license = lib.licenses.lgpl3Only; maintainers = with lib.maintainers; [ fab ]; }; } From 26dee0c1b0752e7f34fb328b0830347cfddaacfa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:08:37 +0100 Subject: [PATCH 12/23] python313Packages.pysigma-backend-splunk: modernize --- .../python-modules/pysigma-backend-splunk/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-splunk/default.nix b/pkgs/development/python-modules/pysigma-backend-splunk/default.nix index 96c1fc63a332..2640ccad46b4 100644 --- a/pkgs/development/python-modules/pysigma-backend-splunk/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-splunk/default.nix @@ -20,9 +20,9 @@ buildPythonPackage rec { hash = "sha256-SiEESeF0YqPYDAK3OUEkqSHmn4uM5LQrCLOHvOy26Io="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ pysigma ]; + dependencies = [ pysigma ]; nativeCheckInputs = [ pysigma-pipeline-sysmon @@ -35,7 +35,7 @@ buildPythonPackage rec { description = "Library to support Splunk for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-splunk"; changelog = "https://github.com/SigmaHQ/pySigma-backend-splunk/releases/tag/${src.tag}"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ fab ]; }; } From a156d61bb068e01aebfdc38a794a06bbb07f6a6e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:12:27 +0100 Subject: [PATCH 13/23] python313Packages.pysigma-backend-insightidr: modernize --- .../pysigma-backend-insightidr/default.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix index 4e80a326567b..e1898ee43837 100644 --- a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix @@ -5,15 +5,12 @@ poetry-core, pysigma, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "pysigma-backend-insightidr"; version = "0.2.4"; - format = "pyproject"; - - disabled = pythonOlder "3.8"; + pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; @@ -22,11 +19,9 @@ buildPythonPackage rec { hash = "sha256-dc25zDYQeU9W9qwrRz7zsM2wOl8kMapDvwFhB6VOwhY="; }; - nativeBuildInputs = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ pysigma ]; + dependencies = [ pysigma ]; pythonRelaxDeps = [ "pysigma" ]; @@ -40,7 +35,8 @@ buildPythonPackage rec { meta = { description = "Library to support the Rapid7 InsightIDR backend for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-insightidr"; - license = with lib.licenses; [ lgpl21Only ]; + changelog = "https://github.com/SigmaHQ/pySigma-backend-insightidr/releases/tag/${src.tag}"; + license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ fab ]; }; } From 4f9c69d5d0393f82e8e5f4703a9a03e146188d65 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:19:15 +0100 Subject: [PATCH 14/23] pysigma-backend-opensearch: modernize --- .../python-modules/pysigma-backend-opensearch/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix b/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix index a8aa1c7ce1d8..8c3d14bfb3ed 100644 --- a/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix @@ -7,7 +7,6 @@ pysigma-backend-elasticsearch, pytest-cov-stub, pytestCheckHook, - pythonOlder, requests, }: @@ -16,8 +15,6 @@ buildPythonPackage rec { version = "1.0.4"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-backend-opensearch"; @@ -50,7 +47,7 @@ buildPythonPackage rec { meta = { description = "Library to support OpenSearch for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-opensearch"; - changelog = "https://github.com/SigmaHQ/pySigma-backend-opensearch/releases/tag/v${version}"; + changelog = "https://github.com/SigmaHQ/pySigma-backend-opensearch/releases/tag/${src.tag}"; license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ fab ]; }; From 63422be094b6b27a2ce760affdec1634deb7f3d9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:20:10 +0100 Subject: [PATCH 15/23] python313Packages.pysigma-backend-elasticsearch: modernize --- .../python-modules/pysigma-backend-elasticsearch/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix index 13c856e2bb05..84b3bd04a9fb 100644 --- a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix @@ -6,7 +6,6 @@ pysigma, pytest-cov-stub, pytestCheckHook, - pythonOlder, requests, }: @@ -15,8 +14,6 @@ buildPythonPackage rec { version = "1.1.6"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-backend-elasticsearch"; @@ -46,7 +43,7 @@ buildPythonPackage rec { meta = { description = "Library to support Elasticsearch for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch"; - changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v${version}"; + changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/${src.tag}"; license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ fab ]; }; From d6243c0b9e1368c0639d7cba45184f7d36336a00 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:37:29 +0100 Subject: [PATCH 16/23] python313Packages.pysigma-backend-elasticsearch: 1.1.6 -> 2.0.0 Changelog: https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v2.0.0 --- .../pysigma-backend-elasticsearch/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix index 84b3bd04a9fb..e3035c067b84 100644 --- a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix @@ -7,18 +7,19 @@ pytest-cov-stub, pytestCheckHook, requests, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "pysigma-backend-elasticsearch"; - version = "1.1.6"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-backend-elasticsearch"; tag = "v${version}"; - hash = "sha256-v+OTMcSvFXfjm4R3wCgLRCG0yKNqvY1mgRcmq2Jws0s="; + hash = "sha256-2gWYGu+Xr4R7QKEBiL5rXd/2HNinazyrF1OKzte0B3g="; }; build-system = [ poetry-core ]; @@ -29,16 +30,13 @@ buildPythonPackage rec { pytest-cov-stub pytestCheckHook requests + writableTmpDirAsHomeHook ]; - pythonImportsCheck = [ "sigma.backends.elasticsearch" ]; + # Starting with 2.0.0 all tests require network access + doCheck = false; - disabledTests = [ - # Tests requires network access - "test_connect_lucene" - # AssertionError - "correlation_rule_stats" - ]; + #pythonImportsCheck = [ "sigma.backends.elasticsearch" ]; meta = { description = "Library to support Elasticsearch for pySigma"; From 801840deed090b745dc040823ab616977beaf706 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 22:46:36 +0100 Subject: [PATCH 17/23] python313Packages.pysigma-backend-opensearch: 1.0.4 -> 2.0.0 Changelog: https://github.com/SigmaHQ/pySigma-backend-opensearch/releases/tag/v2.0.0 --- .../pysigma-backend-opensearch/default.nix | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix b/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix index 8c3d14bfb3ed..c84fd76e9847 100644 --- a/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix @@ -5,21 +5,18 @@ poetry-core, pysigma, pysigma-backend-elasticsearch, - pytest-cov-stub, - pytestCheckHook, - requests, }: buildPythonPackage rec { pname = "pysigma-backend-opensearch"; - version = "1.0.4"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-backend-opensearch"; tag = "v${version}"; - hash = "sha256-VKDyXTvh0T/MKqsZo9lAlHyfhtiXzP5P+d0DSiLqS1o="; + hash = "sha256-N1Gs/L2kCcKkhHYXCyfmentvl1RORUrWIEyxTEsvNKg="; }; pythonRelaxDeps = [ "pysigma" ]; @@ -31,18 +28,10 @@ buildPythonPackage rec { pysigma-backend-elasticsearch ]; - nativeCheckInputs = [ - pytest-cov-stub - pytestCheckHook - requests - ]; + # Starting with 2.0.0 all tests require network access + doCheck = false; - pythonImportsCheck = [ "sigma.backends.opensearch" ]; - - disabledTests = [ - # Tests requires network access - "test_connect_lucene" - ]; + #pythonImportsCheck = [ "sigma.backends.opensearch" ]; meta = { description = "Library to support OpenSearch for pySigma"; From 8fc2591069743651ce0b58f96f96fe548feac866 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Dec 2025 23:02:10 +0100 Subject: [PATCH 18/23] python313Packages.pysigma-pipeline-crowdstrike: modernize --- .../pysigma-pipeline-crowdstrike/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix b/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix index fa7961f04f74..725b3a75d802 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix @@ -5,7 +5,6 @@ poetry-core, pysigma, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { @@ -13,8 +12,6 @@ buildPythonPackage rec { version = "2.0.1"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-pipeline-crowdstrike"; @@ -22,6 +19,8 @@ buildPythonPackage rec { hash = "sha256-WYgT0tRXdSR4qJA7UHotPn9qfnpaIJaqASBXVDG1kOU="; }; + pythonRelaxDeps = [ "pysigma" ]; + build-system = [ poetry-core ]; dependencies = [ pysigma ]; @@ -38,8 +37,8 @@ buildPythonPackage rec { meta = { description = "Library to support CrowdStrike pipeline for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-pipeline-crowdstrike"; - changelog = "https://github.com/SigmaHQ/pySigma-pipeline-crowdstrike/releases/tag/v${version}"; - license = with lib.licenses; [ lgpl21Only ]; + changelog = "https://github.com/SigmaHQ/pySigma-pipeline-crowdstrike/releases/tag/${src.tag}"; + license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ fab ]; }; } From 168a69a76d4367e4ca9469fe139ec0a717b901b1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Dec 2025 08:46:59 +0100 Subject: [PATCH 19/23] python313Packages.pysigma-pipeline-crowdstrike: 2.0.1 -> 3.0.0 Diff: https://github.com/SigmaHQ/pySigma-pipeline-crowdstrike/compare/v2.0.1...v3.0.0 Changelog: https://github.com/SigmaHQ/pySigma-pipeline-crowdstrike/releases/tag/v3.0.0 --- .../python-modules/pysigma-pipeline-crowdstrike/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix b/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix index 725b3a75d802..8376f21e26a7 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "pysigma-pipeline-crowdstrike"; - version = "2.0.1"; + version = "3.0.0"; pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-pipeline-crowdstrike"; tag = "v${version}"; - hash = "sha256-WYgT0tRXdSR4qJA7UHotPn9qfnpaIJaqASBXVDG1kOU="; + hash = "sha256-c7+4/55rrVVVdw2Yy8emoiWkyKlCgP4PKdAa1XW+aYM="; }; pythonRelaxDeps = [ "pysigma" ]; From 9017eb2195667416502cd7a16c34a1a2eced065d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Dec 2025 09:11:32 +0100 Subject: [PATCH 20/23] python313Packages.pysigma-backend-qradar: modernize --- .../python-modules/pysigma-backend-qradar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-qradar/default.nix b/pkgs/development/python-modules/pysigma-backend-qradar/default.nix index fdcb3ee6627a..558003b6192a 100644 --- a/pkgs/development/python-modules/pysigma-backend-qradar/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-qradar/default.nix @@ -37,7 +37,7 @@ buildPythonPackage rec { description = "Library to support Qradar for pySigma"; homepage = "https://github.com/nNipsx-Sec/pySigma-backend-qradar"; changelog = "https://github.com/nNipsx-Sec/pySigma-backend-qradar/releases/tag/${src.tag}"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ fab ]; }; } From 30d5f5450319bee4b4979c72a607fb036d14fac6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Dec 2025 09:12:42 +0100 Subject: [PATCH 21/23] sigma-cli: 1.0.6 -> 2.0.0 --- pkgs/by-name/si/sigma-cli/package.nix | 42 ++++----------------------- 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/pkgs/by-name/si/sigma-cli/package.nix b/pkgs/by-name/si/sigma-cli/package.nix index 8392ae7cd718..a538a88d4b1e 100644 --- a/pkgs/by-name/si/sigma-cli/package.nix +++ b/pkgs/by-name/si/sigma-cli/package.nix @@ -2,24 +2,22 @@ lib, fetchFromGitHub, python3, + writableTmpDirAsHomeHook, }: python3.pkgs.buildPythonApplication rec { pname = "sigma-cli"; - version = "1.0.6"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "sigma-cli"; tag = "v${version}"; - hash = "sha256-BINKEptzdfEJPJAfPoYWiDXdmVnG7NYVaQar7dz4Ptk="; + hash = "sha256-styE30IO5g3KoJ3IxdYiiu9xqh0OeD59WWcLk42wOCo="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace '= "^' '= ">=' - ''; + pythonRelaxDeps = [ "click" ]; build-system = with python3.pkgs; [ poetry-core ]; @@ -39,36 +37,8 @@ python3.pkgs.buildPythonApplication rec { pysigma-pipeline-windows ]; - nativeCheckInputs = with python3.pkgs; [ - pytest-cov-stub - pytestCheckHook - ]; - - disabledTests = [ - "test_plugin_list" - "test_plugin_list_filtered" - "test_plugin_list_search" - "test_plugin_install_notexisting" - "test_plugin_install" - "test_plugin_uninstall" - "test_backend_option_unknown_by_backend" - # Tests require network access - "test_check_with_issues" - "test_plugin_show_identifier" - "test_plugin_show_nonexisting" - "test_plugin_show_uuid" - # Tests compare STDOUT results - "test_check_valid" - "test_check_stdin" - "test_check_exclude" - ]; - - disabledTestPaths = [ - # AssertionError - "tests/test_analyze.py" - "tests/test_convert.py" - "tests/test_filters.py" - ]; + # Starting with 2.0.0 the tests wants to fetch the MITRE data + doCheck = false; pythonImportsCheck = [ "sigma.cli" ]; From a0b2dc8462c0122f45ece4f4598cf69de3805c7e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Dec 2025 21:00:45 +0100 Subject: [PATCH 22/23] python313Packages.pysigma-backend-sqlite: relax pysigma --- .../python-modules/pysigma-backend-sqlite/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix b/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix index 5b07672b606d..917c2032b050 100644 --- a/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix @@ -20,6 +20,8 @@ buildPythonPackage rec { hash = "sha256-NBgpLP3/UUrW/qM24jUyV4MH5c/uCVAfInZ6AKcl1X0="; }; + pythonRelaxDeps = [ "pysigma" ]; + build-system = [ poetry-core ]; dependencies = [ pysigma ]; From c0899ea6b8728e67f1371c82ec2bfaf042e6f5eb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Dec 2025 21:08:23 +0100 Subject: [PATCH 23/23] python313Packages.pysigma-backend-insightidr: disable failing tests --- .../pysigma-backend-insightidr/default.nix | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix index e1898ee43837..af524629545f 100644 --- a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix @@ -32,6 +32,39 @@ buildPythonPackage rec { "sigma.pipelines.insight_idr" ]; + disabledTests = [ + # Tests are outdated + "est_insight_idr_pipeline_dns_field_mapping" + "test_insight_idr_base64_query" + "test_insight_idr_cidr_query" + "test_insight_idr_condition_nested_logic" + "test_insight_idr_contains_all_query" + "test_insight_idr_contains_any_query" + "test_insight_idr_endswith_any_query" + "test_insight_idr_keyword_and_query" + "test_insight_idr_keyword_or_query" + "test_insight_idr_leql_advanced_search_output_format" + "test_insight_idr_leql_detection_definition_output_format" + "test_insight_idr_multi_selection_same_field" + "test_insight_idr_not_1_of_filter_condition" + "test_insight_idr_not_condition_query" + "test_insight_idr_pipeline_process_creation_field_mapping" + "test_insight_idr_pipeline_simple" + "test_insight_idr_pipeline_unsupported_aggregate_conditions_rule_type" + "test_insight_idr_pipeline_web_proxy_field_mapping" + "test_insight_idr_re_query" + "test_insight_idr_simple_contains_query" + "test_insight_idr_simple_endswith_query" + "test_insight_idr_simple_eq_nocase_query" + "test_insight_idr_simple_startswith_query" + "test_insight_idr_single_quote" + "test_insight_idr_startswith_any_query" + "test_insight_idr_triple_quote" + "test_insight_idr_value_eq_and_query" + "test_insight_idr_value_eq_or_query" + "test_insight_idr_value_in_list_query" + ]; + meta = { description = "Library to support the Rapid7 InsightIDR backend for pySigma"; homepage = "https://github.com/SigmaHQ/pySigma-backend-insightidr";