about summary refs log tree commit diff
path: root/pkgs/development/python-modules/detectron2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/detectron2/default.nix')
-rw-r--r--pkgs/development/python-modules/detectron2/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/detectron2/default.nix b/pkgs/development/python-modules/detectron2/default.nix
index 944ff80850cfe..42b8f0a6f43c2 100644
--- a/pkgs/development/python-modules/detectron2/default.nix
+++ b/pkgs/development/python-modules/detectron2/default.nix
@@ -3,7 +3,6 @@
   lib,
   buildPythonPackage,
   fetchFromGitHub,
-  pythonRelaxDepsHook,
   ninja,
   which,
   # build inputs
@@ -72,7 +71,6 @@ buildPythonPackage {
   '';
 
   nativeBuildInputs = [
-    pythonRelaxDepsHook
     ninja
     which
   ];
@@ -101,7 +99,7 @@ buildPythonPackage {
     pydot # no idea why this is not in their setup.py
   ];
 
-  passthru.optional-dependencies = optional-dependencies;
+  optional-dependencies = optional-dependencies;
 
   nativeCheckInputs = [
     av
@@ -165,7 +163,7 @@ buildPythonPackage {
       "test_overlay_instances_no_boxes"
       "test_get_bounding_box"
     ]
-    ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [
+    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
       "test_build_batch_dataloader_inference"
       "test_build_dataloader_inference"
       "test_build_iterable_dataloader_inference"