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
|
2022-08-12 12:06:08 +00:00
|
|
|
, hatchling
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, comm
|
2020-04-24 23:36:52 +00:00
|
|
|
, ipython
|
2021-10-28 06:52:43 +00:00
|
|
|
, jupyter-client
|
2022-04-27 09:35:20 +00:00
|
|
|
, packaging
|
|
|
|
, psutil
|
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";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "6.20.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-ffr67GRTAHEMQUecCwvcE6nqZjm+5uOtBCdXZ06amik=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
|
|
|
|
postPatch = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
sed -i "/debugpy/d" pyproject.toml
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
comm
|
2021-09-18 10:52:07 +00:00
|
|
|
ipython
|
2021-10-28 06:52:43 +00:00
|
|
|
jupyter-client
|
2022-04-27 09:35:20 +00:00
|
|
|
packaging
|
|
|
|
psutil
|
2021-09-18 10:52:07 +00:00
|
|
|
tornado
|
|
|
|
traitlets
|
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|