{ lib , buildPythonPackage , fetchFromGitHub , fetchpatch , poetry-core , pyparsing , pytestCheckHook , pythonOlder , pyyaml }: buildPythonPackage rec { pname = "pysigma"; version = "0.8.9"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma"; rev = "refs/tags/v${version}"; hash = "sha256-SXZ6bo1b5xhVGSlWr51ZCxT0Ov1g/qd8V43P5KEhY+s="; }; 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 ]; }; }