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