python311Packages.pysigma-backend-qradar: migrate to pythonRelaxDepsHook

This commit is contained in:
Fabian Affolter 2024-02-10 10:23:50 +01:00
parent 990d55dfe6
commit bf5bf393a5

View File

@ -6,6 +6,7 @@
, pysigma-pipeline-sysmon , pysigma-pipeline-sysmon
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, pythonRelaxDepsHook
, requests , requests
}: }:
@ -23,8 +24,13 @@ buildPythonPackage rec {
hash = "sha256-VymaxX+iqrRlf+WEt4xqEvNt5kg8xI5O/MoYahayu0o="; hash = "sha256-VymaxX+iqrRlf+WEt4xqEvNt5kg8xI5O/MoYahayu0o=";
}; };
pythonRelaxDeps = [
"pysigma"
];
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
pythonRelaxDepsHook
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -36,11 +42,6 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'pysigma = "^0.7.2"' 'pysigma = "*"'
'';
pythonImportsCheck = [ pythonImportsCheck = [
"sigma.backends.qradar" "sigma.backends.qradar"
]; ];