1{ lib
2, buildPythonPackage
3, fetchPypi
4, docutils
5, jinja2
6, nbconvert
7, nbformat
8, sphinx
9, traitlets
10, isPy3k
11}:
12
13buildPythonPackage rec {
14 pname = "nbsphinx";
15 version = "0.8.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "ff91b5b14ceb1a9d44193b5fc3dd3617e7b8ab59c788f7710049ce5faff2750c";
20 };
21
22 propagatedBuildInputs = [
23 docutils
24 jinja2
25 nbconvert
26 nbformat
27 sphinx
28 traitlets
29 ];
30
31 # The package has not tests
32 doCheck = false;
33
34 JUPYTER_PATH = "${nbconvert}/share/jupyter";
35 pythonImportsCheck = [
36 "nbsphinx"
37 ];
38
39 disabled = !isPy3k;
40
41 meta = with lib; {
42 description = "Jupyter Notebook Tools for Sphinx";
43 homepage = "https://nbsphinx.readthedocs.io/";
44 license = licenses.mit;
45 maintainers = [ maintainers.costrouc ];
46 };
47}