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