ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pysigma / default.nix
blob82fde07aef484daae7a97d2c642c7332b81fe69c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , poetry-core
6 , pyparsing
7 , pytestCheckHook
8 , pythonOlder
9 , pyyaml
12 buildPythonPackage rec {
13   pname = "pysigma";
14   version = "0.8.9";
15   format = "pyproject";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "SigmaHQ";
21     repo = "pySigma";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-SXZ6bo1b5xhVGSlWr51ZCxT0Ov1g/qd8V43P5KEhY+s=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     pyparsing
32     pyyaml
33   ];
35   checkInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "sigma"
41   ];
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   };