python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / sigma-cli / default.nix
blobc0a21ef5440abfa2237e204fd6206864dd1dd69d
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "sigma-cli";
8   version = "0.5.3";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "SigmaHQ";
13     repo = pname;
14     rev = "refs/tags/v${version}";
15     hash = "sha256-orJkWVBZnbhRjYDI6s5fPymzpTmZE5MsmYWp3JOKjnU=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20   ];
22   propagatedBuildInputs = with python3.pkgs; [
23     click
24     prettytable
25     pysigma
26     pysigma-backend-elasticsearch
27     pysigma-backend-insightidr
28     pysigma-backend-opensearch
29     pysigma-backend-qradar
30     pysigma-backend-splunk
31     pysigma-pipeline-crowdstrike
32     pysigma-pipeline-sysmon
33     pysigma-pipeline-windows
34   ];
36   checkInputs = with python3.pkgs; [
37     pytestCheckHook
38   ];
40   postPatch = ''
41     substituteInPlace pyproject.toml \
42       --replace '= "^' '= ">='
43   '';
45   pythonImportsCheck = [
46     "sigma.cli"
47   ];
49   meta = with lib; {
50     description = "Sigma command line interface";
51     homepage = "https://github.com/SigmaHQ/sigma-cli";
52     license = with licenses; [ lgpl21Plus ];
53     maintainers = with maintainers; [ fab ];
54     mainProgram = "sigma";
55   };