python313Packages.openshift: migrate to pythonRelaxDepsHook

This commit is contained in:
Peder Bergebakken Sundt
2025-02-21 17:42:31 +01:00
parent 4a59a4053a
commit bc462c101b
@@ -8,6 +8,7 @@
six,
python-string-utils,
pytest-bdd,
pytest-cov-stub,
pytestCheckHook,
}:
@@ -23,12 +24,7 @@ buildPythonPackage rec {
hash = "sha256-uLfewj7M8KNs3oL1AM18sR/WhAR2mvBfqadyhR73FP0=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "kubernetes ~= 12.0" "kubernetes"
sed -i '/--cov/d' setup.cfg
'';
pythonRelaxDeps = [ "kubernetes" ];
propagatedBuildInputs = [
jinja2
@@ -42,6 +38,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-bdd
pytest-cov-stub
pytestCheckHook
];