1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, nose
6, glibcLocales
7, entrypoints
8, bleach
9, mistune
10, jinja2
11, pygments
12, traitlets
13, testpath
14, jupyter_core
15, nbformat
16, ipykernel
17, pandocfilters
18, tornado
19, jupyter_client
20}:
21
22buildPythonPackage rec {
23 pname = "nbconvert";
24 version = "5.3.1";
25
26 src = fetchPypi {
27 inherit pname version;
28 sha256 = "1f9dkvpx186xjm4xab0qbph588mncp4vqk3fmxrsnqs43mks9c8j";
29 };
30
31 checkInputs = [ nose pytest glibcLocales ];
32
33 propagatedBuildInputs = [
34 entrypoints bleach mistune jinja2 pygments traitlets testpath
35 jupyter_core nbformat ipykernel pandocfilters tornado jupyter_client
36 ];
37
38 checkPhase = ''
39 mkdir tmp
40 LC_ALL=en_US.UTF-8 HOME=`realpath tmp` py.test -v
41 '';
42
43 meta = {
44 description = "Converting Jupyter Notebooks";
45 homepage = http://jupyter.org/;
46 license = lib.licenses.bsd3;
47 maintainers = with lib.maintainers; [ fridh globin ];
48 };
49}