Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 61 lines 1.5 kB view raw
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 13}: 14 15buildPythonPackage rec { 16 pname = "ipykernel"; 17 version = "5.5.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "98321abefdf0505fb3dc7601f60fc4087364d394bd8fad53107eb1adee9ff475"; 22 }; 23 24 propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ]; 25 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" 36 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" 42 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 ]); 51 52 # Some of the tests use localhost networking. 53 __darwinAllowLocalNetworking = true; 54 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 }; 61}