2017-04-18 09:36:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, ipython
|
|
|
|
, jupyter_client
|
|
|
|
, pexpect
|
|
|
|
, traitlets
|
|
|
|
, tornado
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipykernel";
|
2018-02-17 13:20:19 +00:00
|
|
|
version = "4.8.1";
|
2017-04-18 09:36:37 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-17 13:20:19 +00:00
|
|
|
sha256 = "fe2837622a4121cbe42b354db1e2ab46c91e807ffcb92f4c2cfd323a75f8737f";
|
2017-04-18 09:36:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose ] ++ lib.optional isPy27 mock;
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipython
|
|
|
|
jupyter_client
|
|
|
|
pexpect
|
|
|
|
traitlets
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require backends.
|
|
|
|
# I don't want to add all supported backends as propagatedBuildInputs
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython Kernel for Jupyter";
|
|
|
|
homepage = http://ipython.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|