python313Packages.pysigma: 0.11.23 -> 1.0.2

Changelog: https://github.com/SigmaHQ/pySigma/releases/tag/v1.0.2
This commit is contained in:
Fabian Affolter
2025-12-23 09:33:09 +01:00
parent 07d9127c3c
commit 094cbc69de
@@ -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 ];
};
}