anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pysigma-backend-elasticsearch / default.nix
blob33edb0c8114e42b90f3ec19577b4681995b0de97
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pysigma,
7   pytestCheckHook,
8   pythonOlder,
9   requests,
12 buildPythonPackage rec {
13   pname = "pysigma-backend-elasticsearch";
14   version = "1.1.5";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "SigmaHQ";
21     repo = "pySigma-backend-elasticsearch";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-qIP+TP6lzviEAunYge/SIZQ6PI0EFnJo64FVpPmkdLY=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" ""
29   '';
31   build-system = [ poetry-core ];
33   dependencies = [ pysigma ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     requests
38   ];
40   pythonImportsCheck = [ "sigma.backends.elasticsearch" ];
42   disabledTests = [
43     # Tests requires network access
44     "test_connect_lucene"
45     # AssertionError
46     "correlation_rule_stats"
47   ];
49   meta = with lib; {
50     description = "Library to support Elasticsearch for pySigma";
51     homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch";
52     changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v${version}";
53     license = with licenses; [ lgpl21Only ];
54     maintainers = with maintainers; [ fab ];
55   };