python3Packages.watchdog: fix darwin-x86_64 build

main
Phillip Cloud 2 years ago
parent ac72b18db2
commit 61013d7c56
No known key found for this signature in database
GPG Key ID: D908212070FD785E
  1. 7
      pkgs/development/python-modules/watchdog/default.nix
  2. 13
      pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch

@ -20,6 +20,10 @@ buildPythonPackage rec {
sha256 = "sha256-P9R4FTU76cRO68lMwo/iaysMW9iJ2vxKWny9+SQUNIA=";
};
patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [
./watchdog-force-kqueue.patch
];
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
propagatedBuildInputs = [
@ -58,8 +62,5 @@ buildPythonPackage rec {
homepage = "https://github.com/gorakhargosh/watchdog";
license = licenses.asl20;
maintainers = with maintainers; [ goibhniu ];
# error: use of undeclared identifier 'kFSEventStreamEventFlagItemCloned'
# builds fine on aarch64-darwin
broken = stdenv.isDarwin && !stdenv.isAarch64;
};
}

@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 072dfc8..cb9aa7a 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,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',
Loading…
Cancel
Save