Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ipykernel / tests.nix
blob0de6d2feb4aef87f02d689c4c610e16741740c88
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , pythonOlder
5 , flaky
6 , ipykernel
7 , ipyparallel
8 , pre-commit
9 , pytestCheckHook
10 , pytest-asyncio
11 , pytest-timeout
14 buildPythonPackage {
15   pname = "ipykernel-tests";
16   inherit (ipykernel) version src;
17   format = "other";
19   dontBuild = true;
20   dontInstall = true;
22   nativeCheckInputs = [
23     flaky
24     ipykernel
25     ipyparallel
26     pre-commit
27     pytestCheckHook
28     pytest-asyncio
29     pytest-timeout
30   ];
32   preCheck = ''
33     export HOME=$(mktemp -d)
34   '';
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
52     "test_unc_paths"
53   ] ++ lib.optionals (pythonOlder "3.8") [
54     # flaky test https://github.com/ipython/ipykernel/issues/485
55     "test_shutdown"
57     # test regression https://github.com/ipython/ipykernel/issues/486
58     "test_sys_path_profile_dir"
59     "test_save_history"
60     "test_help_output"
61     "test_write_kernel_spec"
62     "test_ipython_start_kernel_userns"
63     "ZMQDisplayPublisherTests"
64   ]);
66   # Some of the tests use localhost networking.
67   __darwinAllowLocalNetworking = true;