Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 70 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, stdenv, buildPythonPackage, callPackage, fetchPypi, hatchling, appnope, comm, ipython, jupyter-client, jupyter-core, matplotlib-inline, nest-asyncio, packaging, psutil, pyzmq, tornado, traitlets,
# Reverse dependency sage,}:
buildPythonPackage rec { pname = "ipykernel"; version = "7.1.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-WKP8iFM9WTDDVG3H6sZsbSiKzeT4AeIAHmXtxdyc8Ns="; };
# debugpy is optional, see https://github.com/ipython/ipykernel/pull/767 pythonRemoveDeps = [ "debugpy" ];
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ comm ipython jupyter-client jupyter-core matplotlib-inline nest-asyncio packaging psutil pyzmq tornado traitlets ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ appnope ];
# check in passthru.tests.pytest to escape infinite recursion with ipyparallel doCheck = false;
passthru.tests = { pytest = callPackage ./tests.nix { }; inherit sage; };
meta = { description = "IPython Kernel for Jupyter"; homepage = "https://ipython.org/"; changelog = "https://github.com/ipython/ipykernel/releases/tag/v${version}"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };}