forked from mirrors/nixpkgs
9e3b985316
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.
45 lines
804 B
Nix
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 ];
|
|
};
|
|
}
|