Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, ipython 6, jupyter_client 7, traitlets 8, tornado 9, pythonOlder 10, pytest 11, nose 12}: 13 14buildPythonPackage rec { 15 pname = "ipykernel"; 16 version = "5.1.0"; 17 disabled = pythonOlder "3.4"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "0fc0bf97920d454102168ec2008620066878848fcfca06c22b669696212e292f"; 22 }; 23 24 checkInputs = [ pytest nose ]; 25 propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ]; 26 27 # https://github.com/ipython/ipykernel/pull/377 28 patches = [ 29 (fetchpatch { 30 url = "https://github.com/ipython/ipykernel/commit/a3bf849dbd368a1826deb9dfc94c2bd3e5ed04fe.patch"; 31 sha256 = "1yhpwqixlf98a3n620z92mfips3riw6psijqnc5jgs2p58fgs2yc"; 32 }) 33 ]; 34 35 # For failing tests, see https://github.com/ipython/ipykernel/issues/387 36 checkPhase = '' 37 HOME=$(mktemp -d) pytest ipykernel -k "not (test_sys_path or test_sys_path_profile_dir or test_complete)" 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}