diff --git a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix index 02f8969bd400..b1cecd44d086 100644 --- a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix @@ -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 ]; }; } diff --git a/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix b/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix index a1c1c61fa108..3acceaeaef5d 100644 --- a/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix @@ -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 ]; }; }