ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pysigma-backend-elasticsearch / default.nix
blobb4ed12200b5d84180ffe1d010d23c3a0b1f31e6a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pysigma
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 }:
11 buildPythonPackage rec {
12   pname = "pysigma-backend-elasticsearch";
13   version = "0.1.1";
14   format = "pyproject";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "SigmaHQ";
20     repo = "pySigma-backend-elasticsearch";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-Niix0j4xaoQBMxvTOhy7hgmZ5btjs+0ovTEJcXAzjNY=";
23   };
25   nativeBuildInputs = [
26     poetry-core
27   ];
29   propagatedBuildInputs = [
30     pysigma
31   ];
33   checkInputs = [
34     pytestCheckHook
35     requests
36   ];
38   pythonImportsCheck = [
39     "sigma.backends.elasticsearch"
40   ];
42   disabledTests = [
43     # Tests requires network access
44     "test_connect_lucene"
45   ];
47   meta = with lib; {
48     description = "Library to support Elasticsearch for pySigma";
49     homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch";
50     license = with licenses; [ lgpl21Only ];
51     maintainers = with maintainers; [ fab ];
52   };