1{
2 lib,
3 stdenv,
4 cffi,
5}:
6
7if cffi == null then
8 null
9else
10 cffi.overridePythonAttrs {
11 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
12 # cannot load library 'c'
13 "test_FILE"
14 "test_FILE_object"
15 "test_FILE_only_for_FILE_arg"
16 "test_load_and_call_function"
17 "test_load_library"
18
19 # cannot load library 'dl'
20 "test_dlopen_handle"
21
22 # cannot load library 'm'
23 "test_dir_on_dlopen_lib"
24 "test_dlclose"
25 "test_dlopen"
26 "test_dlopen_constant"
27 "test_dlopen_flags"
28 "test_function_typedef"
29 "test_line_continuation_in_defines"
30 "test_missing_function"
31 "test_remove_comments"
32 "test_remove_line_continuation_comments"
33 "test_simple"
34 "test_sin"
35 "test_sinf"
36 "test_stdcall_only_on_windows"
37 "test_wraps_from_stdlib"
38
39 # MemoryError
40 "test_callback_as_function_argument"
41 "test_callback_crash"
42 "test_callback_decorator"
43 "test_callback_large_struct"
44 "test_callback_returning_void"
45 "test_cast_functionptr_and_int"
46 "test_function_pointer"
47 "test_functionptr_intptr_return"
48 "test_functionptr_simple"
49 "test_functionptr_void_return"
50 "test_functionptr_voidptr_return"
51 ];
52 }