Unverified Commit e09eae7b authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python312Packages.pysigma-backend-*: refactor (#386764)

parents 65660591 38566234
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  poetry-core,
  pysigma,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  requests,
@@ -23,16 +24,12 @@ buildPythonPackage rec {
    hash = "sha256-qIP+TP6lzviEAunYge/SIZQ6PI0EFnJo64FVpPmkdLY=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" ""
  '';

  build-system = [ poetry-core ];

  dependencies = [ pysigma ];

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
    requests
  ];
@@ -50,7 +47,7 @@ buildPythonPackage rec {
    description = "Library to support Elasticsearch for pySigma";
    homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch";
    changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v${version}";
    license = with licenses; [ lgpl21Only ];
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ fab ];
  };
}
+3 −6
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  poetry-core,
  pysigma,
  pysigma-backend-elasticsearch,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  requests,
@@ -24,11 +25,6 @@ buildPythonPackage rec {
    hash = "sha256-VKDyXTvh0T/MKqsZo9lAlHyfhtiXzP5P+d0DSiLqS1o=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" ""
  '';

  pythonRelaxDeps = [ "pysigma" ];

  build-system = [ poetry-core ];
@@ -39,6 +35,7 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
    requests
  ];
@@ -54,7 +51,7 @@ buildPythonPackage rec {
    description = "Library to support OpenSearch for pySigma";
    homepage = "https://github.com/SigmaHQ/pySigma-backend-opensearch";
    changelog = "https://github.com/SigmaHQ/pySigma-backend-opensearch/releases/tag/v${version}";
    license = with licenses; [ lgpl21Only ];
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ fab ];
  };
}