16 pname = "ipykernel-tests";
17 inherit (ipykernel) version src;
34 export HOME=$(mktemp -d)
39 # The follwing three tests fail for unclear reasons.
40 # pytest.PytestUnhandledThreadExceptionWarning: Exception in thread Thread-8
41 "test_asyncio_interrupt"
43 # DeprecationWarning: Passing unrecognized arguments to super(IPythonKernel)
44 "test_embed_kernel_func"
46 # traitlets.config.configurable.MultipleInstanceError: An incompatible siblin...
47 "test_install_kernelspec"
49 ++ lib.optionals stdenv.hostPlatform.isDarwin (
51 # see https://github.com/NixOS/nixpkgs/issues/76197
52 "test_subprocess_print"
53 "test_subprocess_error"
54 "test_ipython_start_kernel_no_userns"
56 # https://github.com/ipython/ipykernel/issues/506
59 ++ lib.optionals (pythonOlder "3.8") [
60 # flaky test https://github.com/ipython/ipykernel/issues/485
63 # test regression https://github.com/ipython/ipykernel/issues/486
64 "test_sys_path_profile_dir"
67 "test_write_kernel_spec"
68 "test_ipython_start_kernel_userns"
69 "ZMQDisplayPublisherTests"
73 # Some of the tests use localhost networking.
74 __darwinAllowLocalNetworking = true;