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