Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, nose 5, isPy27 6, mock 7, ipython 8, jupyter_client 9, pexpect 10, traitlets 11, tornado 12}: 13 14buildPythonPackage rec { 15 pname = "ipykernel"; 16 version = "4.6.1"; 17 name = "${pname}-${version}"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "2e1825aca4e2585b5adb7953ea16e53f53a62159ed49952a564b1e23507205db"; 22 }; 23 24 buildInputs = [ nose ] ++ lib.optional isPy27 mock; 25 propagatedBuildInputs = [ 26 ipython 27 jupyter_client 28 pexpect 29 traitlets 30 tornado 31 ]; 32 33 # Tests require backends. 34 # I don't want to add all supported backends as propagatedBuildInputs 35 doCheck = false; 36 37 meta = { 38 description = "IPython Kernel for Jupyter"; 39 homepage = http://ipython.org/; 40 license = lib.licenses.bsd3; 41 maintainers = with lib.maintainers; [ fridh ]; 42 }; 43}