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

This commit is contained in:
Nick Cao
2025-03-03 15:16:43 -05:00
committed by GitHub
2 changed files with 6 additions and 12 deletions
@@ -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 ];
};
}
@@ -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 ];
};
}