1{ lib 2, buildPythonPackage 3, callPackage 4, fetchPypi 5, pythonOlder 6, argcomplete 7, debugpy 8, ipython 9, jupyter-client 10, tornado 11, traitlets 12}: 13 14buildPythonPackage rec { 15 pname = "ipykernel"; 16 version = "6.4.1"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "df3355e5eec23126bc89767a676c5f0abfc7f4c3497d118c592b83b316e8c0cd"; 21 }; 22 23 propagatedBuildInputs = [ 24 debugpy 25 ipython 26 jupyter-client 27 tornado 28 traitlets 29 ] ++ lib.optionals (pythonOlder "3.8") [ 30 argcomplete 31 ]; 32 33 # check in passthru.tests.pytest to escape infinite recursion with ipyparallel 34 doCheck = false; 35 36 passthru.tests = { 37 pytest = callPackage ./tests.nix { }; 38 }; 39 40 meta = { 41 description = "IPython Kernel for Jupyter"; 42 homepage = "http://ipython.org/"; 43 license = lib.licenses.bsd3; 44 maintainers = with lib.maintainers; [ fridh ]; 45 }; 46}