lol

python312Packages.pysigma-backend-opensearch: refactor

+17 -21
+17 -21
pkgs/development/python-modules/pysigma-backend-opensearch/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , poetry-core 5 - , pysigma 6 - , pysigma-backend-elasticsearch 7 - , pytestCheckHook 8 - , pythonOlder 9 - , pythonRelaxDepsHook 10 - , requests 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + poetry-core, 6 + pysigma, 7 + pysigma-backend-elasticsearch, 8 + pytestCheckHook, 9 + pythonOlder, 10 + pythonRelaxDepsHook, 11 + requests, 11 12 }: 12 13 13 14 buildPythonPackage rec { ··· 29 30 --replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" "" 30 31 ''; 31 32 32 - pythonRelaxDeps = [ 33 - "pysigma" 34 - ]; 33 + pythonRelaxDeps = [ "pysigma" ]; 35 34 36 - nativeBuildInputs = [ 37 - poetry-core 38 - pythonRelaxDepsHook 39 - ]; 35 + build-system = [ poetry-core ]; 36 + 37 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 40 38 41 - propagatedBuildInputs = [ 39 + dependencies = [ 42 40 pysigma 43 41 pysigma-backend-elasticsearch 44 42 ]; ··· 48 46 requests 49 47 ]; 50 48 51 - pythonImportsCheck = [ 52 - "sigma.backends.opensearch" 53 - ]; 49 + pythonImportsCheck = [ "sigma.backends.opensearch" ]; 54 50 55 51 disabledTests = [ 56 52 # Tests requires network access