1{ lib
2, buildPythonPackage
3, fetchPypi
4, traitlets
5, jupyter_core
6, pyzmq
7, dateutil
8, isPyPy
9, py
10, ipykernel
11, ipython
12, mock
13, pytest
14, tornado
15}:
16
17buildPythonPackage rec {
18 pname = "jupyter_client";
19 version = "5.2.3";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "27befcf0446b01e29853014d6a902dd101ad7d7f94e2252b1adca17c3466b761";
24 };
25
26 checkInputs = [ ipykernel ipython mock pytest ];
27 propagatedBuildInputs = [traitlets jupyter_core pyzmq dateutil tornado ] ++ lib.optional isPyPy py;
28
29 checkPhase = ''
30 py.test
31 '';
32
33 # Circular dependency with ipykernel
34 doCheck = false;
35
36 meta = {
37 description = "Jupyter protocol implementation and client libraries";
38 homepage = http://jupyter.org/;
39 license = lib.licenses.bsd3;
40 maintainers = with lib.maintainers; [ fridh ];
41 };
42}