Unverified Commit 71db6ea6 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

python3Packages.bbox: fix build (#398845)

parents 105bfd34 0ee5b5a7
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -29,6 +29,11 @@ buildPythonPackage rec {

  nativeBuildInputs = [ poetry-core ];

  postPatch = ''
    substituteInPlace bbox/metrics.py \
      --replace-warn round_ round
  '';

  propagatedBuildInputs = [
    pyquaternion
    numpy
@@ -46,12 +51,14 @@ buildPythonPackage rec {
    "test_multi_jaccard_index_2d_performance"
  ];

  pythonRelaxDeps = [ "numpy" ];

  pythonImportsCheck = [ "bbox" ];

  meta = with lib; {
  meta = {
    description = "Python library for 2D/3D bounding boxes";
    homepage = "https://github.com/varunagrawal/bbox";
    license = licenses.mit;
    maintainers = with maintainers; [ lucasew ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ lucasew ];
  };
}