1{ lib
2, python
3, buildPythonPackage
4, fetchPypi
5, ipython
6, traitlets
7, glibcLocales
8, mock
9, pytest
10}:
11
12buildPythonPackage rec {
13 pname = "jupyter_core";
14 version = "4.4.0";
15 name = "${pname}-${version}";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7";
20 };
21
22 checkInputs = [ pytest mock glibcLocales ];
23 propagatedBuildInputs = [ ipython traitlets ];
24
25 patches = [ ./tests_respect_pythonpath.patch ];
26
27 checkPhase = ''
28 mkdir tmp
29 HOME=tmp TMPDIR=tmp 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 = http://jupyter.org/;
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ fridh globin ];
37 };
38}