1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5, poetry-core
6, pyparsing
7, pytestCheckHook
8, pythonOlder
9, pyyaml
10}:
11
12buildPythonPackage rec {
13 pname = "pysigma";
14 version = "0.8.9";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "SigmaHQ";
21 repo = "pySigma";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-SXZ6bo1b5xhVGSlWr51ZCxT0Ov1g/qd8V43P5KEhY+s=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 propagatedBuildInputs = [
31 pyparsing
32 pyyaml
33 ];
34
35 checkInputs = [
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "sigma"
41 ];
42
43 meta = with lib; {
44 description = "Library to parse and convert Sigma rules into queries";
45 homepage = "https://github.com/SigmaHQ/pySigma";
46 license = with licenses; [ lgpl21Only ];
47 maintainers = with maintainers; [ fab ];
48 };
49}