1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, glibcLocales
6, isPy27
7, mock
8, jinja2
9, tornado
10, ipython_genutils
11, traitlets
12, jupyter_core
13, jupyter_client
14, nbformat
15, nbconvert
16, ipykernel
17, terminado
18, requests
19, pexpect
20}:
21
22buildPythonPackage rec {
23 pname = "notebook";
24 version = "5.0.0";
25 name = "${pname}-${version}";
26
27 src = fetchPypi {
28 inherit pname version;
29 sha256 = "1cea3bbbd03c8e5842a1403347a8cc8134486b3ce081a2e5b1952a00ea66ed54";
30 };
31
32 LC_ALL = "en_US.UTF-8";
33
34 buildInputs = [nose glibcLocales] ++ lib.optionals isPy27 [mock];
35
36 propagatedBuildInputs = [jinja2 tornado ipython_genutils traitlets jupyter_core
37 jupyter_client nbformat nbconvert ipykernel terminado requests pexpect ];
38
39 checkPhase = ''
40 nosetests -v
41 '';
42
43 # Certain tests fail due to being in a chroot.
44 # PermissionError
45 doCheck = false;
46 meta = {
47 description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing";
48 homepage = http://jupyter.org/;
49 license = lib.licenses.bsd3;
50 maintainers = with lib.maintainers; [ fridh ];
51 };
52}