nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
2022-01-23 01:09:10 +01:00

47 lines
868 B
Nix

{ lib
, buildPythonPackage
, callPackage
, fetchPypi
, pythonOlder
, argcomplete
, debugpy
, ipython
, jupyter-client
, tornado
, traitlets
}:
buildPythonPackage rec {
pname = "ipykernel";
version = "6.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "d82b904fdc2fd8c7b1fbe0fa481c68a11b4cd4c8ef07e6517da1f10cc3114d24";
};
propagatedBuildInputs = [
debugpy
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 ];
};
}