15 buildPythonPackage rec {
20 inherit pname version;
21 sha256 = "98321abefdf0505fb3dc7601f60fc4087364d394bd8fad53107eb1adee9ff475";
24 propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
26 checkInputs = [ pytestCheckHook nose flaky ];
27 dontUseSetuptoolsCheck = true;
29 export HOME=$(mktemp -d)
31 disabledTests = lib.optionals stdenv.isDarwin ([
32 # see https://github.com/NixOS/nixpkgs/issues/76197
33 "test_subprocess_print"
34 "test_subprocess_error"
35 "test_ipython_start_kernel_no_userns"
37 # https://github.com/ipython/ipykernel/issues/506
39 ] ++ lib.optionals (pythonOlder "3.8") [
40 # flaky test https://github.com/ipython/ipykernel/issues/485
43 # test regression https://github.com/ipython/ipykernel/issues/486
44 "test_sys_path_profile_dir"
47 "test_write_kernel_spec"
48 "test_ipython_start_kernel_userns"
49 "ZMQDisplayPublisherTests"
52 # Some of the tests use localhost networking.
53 __darwinAllowLocalNetworking = true;
56 description = "IPython Kernel for Jupyter";
57 homepage = "http://ipython.org/";
58 license = lib.licenses.bsd3;
59 maintainers = with lib.maintainers; [ fridh ];