depot/third_party/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

50 lines
1,009 B
Nix

{ lib
, buildPythonPackage
, callPackage
, fetchPypi
, pythonOlder
, argcomplete
, ipython
, jupyter-client
, tornado
, traitlets
}:
buildPythonPackage rec {
pname = "ipykernel";
version = "6.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+VBwot/TFH+KsZ8Y7kZzMxCBN1hZN0XgfsGPsItAnx0=";
};
# debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
postPatch = ''
substituteInPlace setup.py \
--replace "'debugpy>=1.0.0,<2.0'," ""
'';
propagatedBuildInputs = [
ipython
jupyter-client
tornado
traitlets
] ++ lib.optionals (pythonOlder "3.8") [
argcomplete
];
# check in passthru.tests.pytest to escape infinite recursion with ipyparallel
doCheck = false;
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = {
description = "IPython Kernel for Jupyter";
homepage = "http://ipython.org/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}