2017-04-18 10:36:37 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, ipython
|
|
|
|
, jupyter_client
|
|
|
|
, pexpect
|
|
|
|
, traitlets
|
|
|
|
, tornado
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipykernel";
|
2017-12-30 12:23:36 +01:00
|
|
|
version = "4.7.0";
|
2017-04-18 10:36:37 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 12:23:36 +01:00
|
|
|
sha256 = "354986612a38f0555c43d5af2425e2a67506b63b313a0325e38904003b9d977b";
|
2017-04-18 10:36:37 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|