Commit 6c507fd8 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.detectron2: skip failing test on python>=3.14

parent 2b32904b
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -44,20 +44,18 @@
  pytest-mock,
  pytestCheckHook,
  torchvision,
  pythonAtLeast,
}:

let
buildPythonPackage (finalAttrs: {
  pname = "detectron2";
  version = "0.6";
in
buildPythonPackage {
  inherit pname version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "facebookresearch";
    repo = "detectron2";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-TosuUZ1hJrXF3VGzsGO2hmQJitGUxe7FyZyKjNh+zPA=";
  };

@@ -188,6 +186,12 @@ buildPythonPackage {
    "test_apply_deltas_tracing"
    "test_imagelist_padding_tracing"
    "test_roi_pooler_tracing"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # AttributeError: '...' object has no attribute '__annotations__'
    "test_default_anchor_generator_centered"
    "test_scriptability_cpu"
    "test_scriptable_cpu"
  ];

  pythonImportsCheck = [ "detectron2" ];
@@ -198,4 +202,4 @@ buildPythonPackage {
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ happysalada ];
  };
}
})