python36Packges.ipykernel: 4.8.2 -> 5.1.0

This commit is contained in:
Chris Ostrouchov 2018-11-03 22:11:11 -04:00 committed by Frederik Rietdijk
parent 3dd245c5f8
commit 39adcea9d6
3 changed files with 57 additions and 19 deletions

View File

@ -0,0 +1,41 @@
{ 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;
};
}

View File

@ -1,37 +1,31 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, nose
, isPy27
, mock
, ipython , ipython
, jupyter_client , jupyter_client
, pexpect
, traitlets , traitlets
, tornado , tornado
, pythonOlder
, pytest
, nose
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ipykernel"; pname = "ipykernel";
version = "4.8.2"; version = "5.1.0";
disabled = pythonOlder "3.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c091449dd0fad7710ddd9c4a06e8b9e15277da306590bc07a3a1afa6b4453c8f"; sha256 = "0fc0bf97920d454102168ec2008620066878848fcfca06c22b669696212e292f";
}; };
buildInputs = [ nose ] ++ lib.optional isPy27 mock; checkInputs = [ pytest nose ];
propagatedBuildInputs = [ propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
ipython
jupyter_client
pexpect
traitlets
tornado
];
# Tests require backends. checkPhase = ''
# I don't want to add all supported backends as propagatedBuildInputs HOME=$(mktemp -d) pytest ipykernel
doCheck = false; '';
meta = { meta = {
description = "IPython Kernel for Jupyter"; description = "IPython Kernel for Jupyter";
@ -39,4 +33,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ]; maintainers = with lib.maintainers; [ fridh ];
}; };
} }

View File

@ -2539,7 +2539,10 @@ in {
ipy = callPackage ../development/python-modules/IPy { }; ipy = callPackage ../development/python-modules/IPy { };
ipykernel = callPackage ../development/python-modules/ipykernel { }; ipykernel = if pythonOlder "3.4" then
callPackage ../development/python-modules/ipykernel/4.nix { }
else
callPackage ../development/python-modules/ipykernel { };
ipyparallel = callPackage ../development/python-modules/ipyparallel { }; ipyparallel = callPackage ../development/python-modules/ipyparallel { };