Unverified Commit 664ea60d authored by Emily's avatar Emily Committed by GitHub
Browse files

python312Packages.watchdog: fix x64 darwin (#351344)

parents cdab0d3f 16facaed
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  lib,
  stdenv,
  buildPythonPackage,
  CoreServices,
  eventlet,
  fetchPypi,
  flaky,
@@ -11,6 +10,7 @@
  pytestCheckHook,
  pythonOlder,
  pyyaml,
  apple-sdk_11,
}:

buildPythonPackage rec {
@@ -25,13 +25,7 @@ buildPythonPackage rec {
    hash = "sha256-tN+7bEkiG+RTViPqRHSk1u4KnO9KgLIMKNtNhYtk4nA=";
  };

  # force kqueue on x86_64-darwin, because our api version does
  # not support fsevents
  patches = lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isAarch64) [
    ./force-kqueue.patch
  ];

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
  buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;

  optional-dependencies.watchmedo = [ pyyaml ];

+0 −26
Original line number Diff line number Diff line
diff --git a/setup.py b/setup.py
index 337e4be..55ef9a6 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ _apple_devices = ("appletv", "iphone", "ipod", "ipad", "watch")
 is_macos = sys.platform == "darwin" and not machine().lower().startswith(_apple_devices)
 
 ext_modules = []
-if is_macos or os.getenv("FORCE_MACOS_MACHINE", "0") == "1":
+if False:
     ext_modules = [
         Extension(
             name="_watchdog_fsevents",
diff --git a/tests/utils.py b/tests/utils.py
index 00dcf40..9fbc42a 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -15,8 +15,6 @@ Emitter: Type[EventEmitter]
 if sys.platform.startswith("linux"):
     from watchdog.observers.inotify import InotifyEmitter as Emitter
     from watchdog.observers.inotify import InotifyFullEmitter
-elif sys.platform.startswith("darwin"):
-    from watchdog.observers.fsevents import FSEventsEmitter as Emitter
 elif sys.platform.startswith("win"):
     from watchdog.observers.read_directory_changes import WindowsApiEmitter as Emitter
 elif sys.platform.startswith(("dragonfly", "freebsd", "netbsd", "openbsd", "bsd")):
+1 −3
Original line number Diff line number Diff line
@@ -17410,9 +17410,7 @@ self: super: with self; {
  wat = callPackage ../development/python-modules/wat { };
  watchdog = callPackage ../development/python-modules/watchdog {
    inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
  };
  watchdog = callPackage ../development/python-modules/watchdog { };
  watchdog-gevent = callPackage ../development/python-modules/watchdog-gevent { };