diff --git a/pkgs/development/python-modules/bbox/default.nix b/pkgs/development/python-modules/bbox/default.nix index 0a41bccf7111..7c7dd2527375 100644 --- a/pkgs/development/python-modules/bbox/default.nix +++ b/pkgs/development/python-modules/bbox/default.nix @@ -29,6 +29,11 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core ]; + postPatch = '' + substituteInPlace bbox/metrics.py \ + --replace-warn round_ round + ''; + propagatedBuildInputs = [ pyquaternion numpy @@ -46,6 +51,8 @@ buildPythonPackage rec { "test_multi_jaccard_index_2d_performance" ]; + pythonRelaxDeps = [ "numpy" ]; + pythonImportsCheck = [ "bbox" ]; meta = with lib; {