python312Packages.pysigma-backend-opensearch: refactor

This commit is contained in:
Fabian Affolter 2024-05-08 11:06:39 +02:00
parent b00811b2b0
commit 6d4eb100e2

View File

@ -1,13 +1,14 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pysigma
, pysigma-backend-elasticsearch
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, requests
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pysigma,
pysigma-backend-elasticsearch,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
requests,
}:
buildPythonPackage rec {
@ -29,16 +30,13 @@ buildPythonPackage rec {
--replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" ""
'';
pythonRelaxDeps = [
"pysigma"
];
pythonRelaxDeps = [ "pysigma" ];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
build-system = [ poetry-core ];
propagatedBuildInputs = [
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
pysigma
pysigma-backend-elasticsearch
];
@ -48,9 +46,7 @@ buildPythonPackage rec {
requests
];
pythonImportsCheck = [
"sigma.backends.opensearch"
];
pythonImportsCheck = [ "sigma.backends.opensearch" ];
disabledTests = [
# Tests requires network access