From 4ca073a957b5cb3b4acc360e2153772a361b3141 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 17 May 2025 13:26:04 +0200 Subject: [PATCH] python313Packages.asyncinotify: mark unsupported on darwin ``` Check whether the following modules can be imported: asyncinotify Traceback (most recent call last): File "", line 1, in File "", line 1, in File "/nix/store/vfdk6q81hdjqjfiqz8f92hibdck3kmn6-python3-3.12.10/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 999, in exec_module File "", line 488, in _call_with_frames_removed File "/nix/store/bk44appr4dabadspjahk3l0ad29vhq8s-python3.12-asyncinotify-4.2.0/lib/python3.12/site-packages/asyncinotify/__init__.py", line 23, in from . import _ffi File "/nix/store/bk44appr4dabadspjahk3l0ad29vhq8s-python3.12-asyncinotify-4.2.0/lib/python3.12/site-packages/asyncinotify/_ffi.py", line 36, in libc.inotify_init.restype = check_return ^^^^^^^^^^^^^^^^^ File "/nix/store/vfdk6q81hdjqjfiqz8f92hibdck3kmn6-python3-3.12.10/lib/python3.12/ctypes/__init__.py", line 392, in __getattr__ func = self.__getitem__(name) ^^^^^^^^^^^^^^^^^^^^^^ File "/nix/store/vfdk6q81hdjqjfiqz8f92hibdck3kmn6-python3-3.12.10/lib/python3.12/ctypes/__init__.py", line 397, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: dlsym(0x3312f2768, inotify_init): symbol not found ``` --- pkgs/development/python-modules/asyncinotify/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/asyncinotify/default.nix b/pkgs/development/python-modules/asyncinotify/default.nix index 1a3ab85a8050..3bd4d0cd51a6 100644 --- a/pkgs/development/python-modules/asyncinotify/default.nix +++ b/pkgs/development/python-modules/asyncinotify/default.nix @@ -30,6 +30,11 @@ buildPythonPackage rec { pytestFlagsArray = [ "test.py" ]; meta = with lib; { + badPlatforms = [ + # Unsupported and crashing on import in dlsym with symbol not found + "aarch64-darwin" + "x86_64-darwin" + ]; description = "Module for inotify"; homepage = "https://github.com/absperf/asyncinotify/"; changelog = "https://github.com/absperf/asyncinotify/releases/tag/v${version}";