2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-09-18 10:52:07 +00:00
|
|
|
, callPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
|
|
|
, argcomplete
|
2021-09-18 10:52:07 +00:00
|
|
|
, debugpy
|
2020-04-24 23:36:52 +00:00
|
|
|
, ipython
|
2021-10-28 06:52:43 +00:00
|
|
|
, jupyter-client
|
2020-04-24 23:36:52 +00:00
|
|
|
, tornado
|
2021-09-18 10:52:07 +00:00
|
|
|
, traitlets
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipykernel";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "6.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "dd27172bccbbcfef952991e49372e4c6fd1c14eed0df05ebd5b4335cb27a81a2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
debugpy
|
|
|
|
ipython
|
2021-10-28 06:52:43 +00:00
|
|
|
jupyter-client
|
2021-09-18 10:52:07 +00:00
|
|
|
tornado
|
|
|
|
traitlets
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
argcomplete
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with ipyparallel
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
passthru.tests = {
|
|
|
|
pytest = callPackage ./tests.nix { };
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython Kernel for Jupyter";
|
|
|
|
homepage = "http://ipython.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|