linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / ipykernel / default.nix
blob98944d2543c4d820019affcf381778d1e2ae19ea
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , flaky
6 , ipython
7 , jupyter_client
8 , traitlets
9 , tornado
10 , pythonOlder
11 , pytestCheckHook
12 , nose
15 buildPythonPackage rec {
16   pname = "ipykernel";
17   version = "5.5.0";
19   src = fetchPypi {
20     inherit pname version;
21     sha256 = "98321abefdf0505fb3dc7601f60fc4087364d394bd8fad53107eb1adee9ff475";
22   };
24   propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
26   checkInputs = [ pytestCheckHook nose flaky ];
27   dontUseSetuptoolsCheck = true;
28   preCheck = ''
29     export HOME=$(mktemp -d)
30   '';
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
38     "test_unc_paths"
39   ] ++ lib.optionals (pythonOlder "3.8") [
40     # flaky test https://github.com/ipython/ipykernel/issues/485
41     "test_shutdown"
43     # test regression https://github.com/ipython/ipykernel/issues/486
44     "test_sys_path_profile_dir"
45     "test_save_history"
46     "test_help_output"
47     "test_write_kernel_spec"
48     "test_ipython_start_kernel_userns"
49     "ZMQDisplayPublisherTests"
50   ]);
52   # Some of the tests use localhost networking.
53   __darwinAllowLocalNetworking = true;
55   meta = {
56     description = "IPython Kernel for Jupyter";
57     homepage = "http://ipython.org/";
58     license = lib.licenses.bsd3;
59     maintainers = with lib.maintainers; [ fridh ];
60   };