nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, callPackage
4, fetchPypi
5, pythonOlder
6, ipython
7, jupyter-client
8, packaging
9, psutil
10, tornado
11, traitlets
12}:
13
14buildPythonPackage rec {
15 pname = "ipykernel";
16 version = "6.12.1";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-CGj1VhcpreREAR+Mp9NQLcnyf39E4g8dX+5+Hytxg6E=";
23 };
24
25 # debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
26 postPatch = ''
27 sed -i "/debugpy/d" setup.py
28 '';
29
30 propagatedBuildInputs = [
31 ipython
32 jupyter-client
33 packaging
34 psutil
35 tornado
36 traitlets
37 ];
38
39 # check in passthru.tests.pytest to escape infinite recursion with ipyparallel
40 doCheck = false;
41
42 passthru.tests = {
43 pytest = callPackage ./tests.nix { };
44 };
45
46 meta = {
47 description = "IPython Kernel for Jupyter";
48 homepage = "http://ipython.org/";
49 license = lib.licenses.bsd3;
50 maintainers = with lib.maintainers; [ fridh ];
51 };
52}