about summary refs log tree commit diff
path: root/pkgs/development/python-modules/notebook/default.nix
blob: 0fa94854640b52fced4c87f4a31a753cb8a43ade (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, buildPythonPackage
, fetchPypi
, nose
, glibcLocales
, isPy27
, mock
, jinja2
, tornado
, ipython_genutils
, traitlets
, jupyter_core
, jupyter_client
, nbformat
, nbconvert
, ipykernel
, terminado
, requests2
, pexpect
}:

buildPythonPackage rec {
  pname = "notebook";
  version = "5.0.0";
  name = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1cea3bbbd03c8e5842a1403347a8cc8134486b3ce081a2e5b1952a00ea66ed54";
  };

  LC_ALL = "en_US.UTF-8";

  buildInputs = [nose glibcLocales]  ++ lib.optionals isPy27 [mock];

  propagatedBuildInputs = [jinja2 tornado ipython_genutils traitlets jupyter_core
    jupyter_client nbformat nbconvert ipykernel terminado requests2 pexpect ];

  checkPhase = ''
    nosetests -v
  '';

  # Certain tests fail due to being in a chroot.
  # PermissionError
  doCheck = false;
  meta = {
    description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing";
    homepage = http://jupyter.org/;
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fridh ];
  };
}