depot/third_party/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05: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.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-uB1XsOFxZwhEvynNwRVisQENPahxFcRRPg7mYKg2h2U=";
};
# 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 ];
};
}