fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pysigma,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "pysigma-backend-elasticsearch";
14 version = "1.1.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "SigmaHQ";
21 repo = "pySigma-backend-elasticsearch";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-1tCn0aPYhjyOQJxN0cqTMDCcE0eZwRtTK6OV3rU1a1E=";
24 };
25
26 postPatch = ''
27 substituteInPlace pyproject.toml \
28 --replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" ""
29 '';
30
31 build-system = [ poetry-core ];
32
33 dependencies = [ pysigma ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 requests
38 ];
39
40 pythonImportsCheck = [ "sigma.backends.elasticsearch" ];
41
42 disabledTests = [
43 # Tests requires network access
44 "test_connect_lucene"
45 ];
46
47 meta = with lib; {
48 description = "Library to support Elasticsearch for pySigma";
49 homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch";
50 changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v${version}";
51 license = with licenses; [ lgpl21Only ];
52 maintainers = with maintainers; [ fab ];
53 };
54}