From bc462c101b0481e99e942acb6364e169ec8a207d Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 21 Feb 2025 17:42:31 +0100 Subject: [PATCH] python313Packages.openshift: migrate to pythonRelaxDepsHook --- pkgs/development/python-modules/openshift/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/openshift/default.nix b/pkgs/development/python-modules/openshift/default.nix index f1ea8488995b..4afdab81fee8 100644 --- a/pkgs/development/python-modules/openshift/default.nix +++ b/pkgs/development/python-modules/openshift/default.nix @@ -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 ];