02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
49 lines
870 B
Nix
49 lines
870 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, poetry-core
|
|
, pyparsing
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysigma";
|
|
version = "0.7.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SigmaHQ";
|
|
repo = "pySigma";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-yXzYNBD39dPd2f5Gvmo5p0cVlTy38q1jnBL+HjAxmB8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyparsing
|
|
pyyaml
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sigma"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to parse and convert Sigma rules into queries";
|
|
homepage = "https://github.com/SigmaHQ/pySigma";
|
|
license = with licenses; [ lgpl21Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|