f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
packaging,
|
|
poetry-core,
|
|
pyparsing,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pyyaml,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysigma";
|
|
version = "0.11.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SigmaHQ";
|
|
repo = "pySigma";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-vc2f5qrPHSU/CUENj+MuD0rjsEj68JPnL39fuOOcRCU=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"jinja2"
|
|
"packaging"
|
|
];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
dependencies = [
|
|
jinja2
|
|
packaging
|
|
pyparsing
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# Tests require network connection
|
|
"test_sigma_plugin_directory_default"
|
|
"test_sigma_plugin_installation"
|
|
];
|
|
|
|
pythonImportsCheck = [ "sigma" ];
|
|
|
|
meta = with lib; {
|
|
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 licenses; [ lgpl21Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|