From d005dacb1a4d47543e190d007b877c357164bd7e Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Wed, 17 Jan 2024 16:50:06 +0100 Subject: [PATCH] python3Packages.deal-solver: fix issue with pyton-runtime-deps-check Signed-off-by: Florian Brandes --- pkgs/development/python-modules/deal-solver/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/deal-solver/default.nix b/pkgs/development/python-modules/deal-solver/default.nix index 28eee72a99d2..c47d5d1c92b4 100644 --- a/pkgs/development/python-modules/deal-solver/default.nix +++ b/pkgs/development/python-modules/deal-solver/default.nix @@ -7,6 +7,7 @@ , astroid , pytestCheckHook , hypothesis +, pythonRelaxDepsHook }: buildPythonPackage rec { @@ -25,8 +26,12 @@ buildPythonPackage rec { nativeBuildInputs = [ flit-core + pythonRelaxDepsHook ]; + # z3 does not provide a dist-info, so python-runtime-deps-check will fail + pythonRemoveDeps = [ "z3-solver" ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace "\"--cov=deal_solver\"," "" \