3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
Martin Weinelt 9e3b985316 python3Packages.ipykernel: add missing deps and split off tests
The package now requires debugpy and the tests require ipyparallel.

The latter causes an infinite recursion, which is why I split out the
tests into `passthru.tests.pytest`. There is not dedicated tests output,
because the tests require relative imports.
2021-09-05 15:00:35 +02:00

45 lines
804 B
Nix

{ lib
, stdenv
, buildPythonPackage
, callPackage
, fetchPypi
, debugpy
, ipython
, jupyter_client
, tornado
, traitlets
, pythonOlder
}:
buildPythonPackage rec {
pname = "ipykernel";
version = "6.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "4439459f171d77f35b7f7e72dace5d7c2dd10a5c9e2c22b173ad9048fbfe7656";
};
propagatedBuildInputs = [
debugpy
ipython
jupyter_client
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 ];
};
}