1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, ipython
6, traitlets
7, glibcLocales
8, mock
9, pytest
10, nose
11}:
12
13buildPythonPackage rec {
14 pname = "jupyter_core";
15 version = "4.8.1";
16 disabled = !isPy3k;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "ef210dcb4fca04de07f2ead4adf408776aca94d17151d6f750ad6ded0b91ea16";
21 };
22
23 checkInputs = [ pytest mock glibcLocales nose ];
24 propagatedBuildInputs = [ ipython traitlets ];
25
26 patches = [ ./tests_respect_pythonpath.patch ];
27
28 checkPhase = ''
29 HOME=$TMPDIR LC_ALL=en_US.utf8 py.test
30 '';
31
32 meta = with lib; {
33 description = "Jupyter core package. A base package on which Jupyter projects rely";
34 homepage = "https://jupyter.org/";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ fridh ];
37 };
38}