15 pname = "ipykernel-tests";
16 inherit (ipykernel) version src;
33 export HOME=$(mktemp -d)
36 disabledTests = [ # The follwing three tests fail for unclear reasons.
37 # pytest.PytestUnhandledThreadExceptionWarning: Exception in thread Thread-8
38 "test_asyncio_interrupt"
40 # DeprecationWarning: Passing unrecognized arguments to super(IPythonKernel)
41 "test_embed_kernel_func"
43 # traitlets.config.configurable.MultipleInstanceError: An incompatible siblin...
44 "test_install_kernelspec"
45 ] ++ lib.optionals stdenv.isDarwin ([
46 # see https://github.com/NixOS/nixpkgs/issues/76197
47 "test_subprocess_print"
48 "test_subprocess_error"
49 "test_ipython_start_kernel_no_userns"
51 # https://github.com/ipython/ipykernel/issues/506
53 ] ++ lib.optionals (pythonOlder "3.8") [
54 # flaky test https://github.com/ipython/ipykernel/issues/485
57 # test regression https://github.com/ipython/ipykernel/issues/486
58 "test_sys_path_profile_dir"
61 "test_write_kernel_spec"
62 "test_ipython_start_kernel_userns"
63 "ZMQDisplayPublisherTests"
66 # Some of the tests use localhost networking.
67 __darwinAllowLocalNetworking = true;