depot/third_party/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

58 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, callPackage
, fetchPypi
, hatchling
, pythonOlder
, ipython
, jupyter-client
, packaging
, psutil
, tornado
, traitlets
}:
buildPythonPackage rec {
pname = "ipykernel";
version = "6.15.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-N6zDJUyqig2vzd3cjchjpgrRtGSHtoruNh2aFb2pgRI=";
};
# debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
postPatch = ''
sed -i "/debugpy/d" pyproject.toml
'';
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
ipython
jupyter-client
packaging
psutil
tornado
traitlets
];
# 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 ];
};
}