forked from mirrors/nixpkgs
42 lines
742 B
Nix
42 lines
742 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, nose
|
||
|
, isPy27
|
||
|
, mock
|
||
|
, ipython
|
||
|
, jupyter_client
|
||
|
, pexpect
|
||
|
, traitlets
|
||
|
, tornado
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "ipykernel";
|
||
|
version = "4.10.0";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad";
|
||
|
};
|
||
|
|
||
|
checkInputs = [ 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;
|
||
|
};
|
||
|
}
|