at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchpatch, 5 fetchPypi, 6 setuptools, 7 docutils, 8 jinja2, 9 nbconvert, 10 nbformat, 11 sphinx, 12 traitlets, 13 pythonOlder, 14}: 15 16buildPythonPackage rec { 17 pname = "nbsphinx"; 18 version = "0.9.7"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-q9KYpobVX6iU72l8UdRPJOU6oxLa2uOOgpIPJQpUVv4="; 26 }; 27 patches = [ 28 (fetchpatch { 29 url = "https://github.com/spatialaudio/nbsphinx/commit/a921973a5d8ecc39c6e02184572b79ab72c9978c.patch"; 30 hash = "sha256-uxfSaOESWn8uVcUm+1ADzQgMQDEqaTs0TbfNYsS+E6I="; 31 }) 32 ]; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ 37 docutils 38 jinja2 39 nbconvert 40 nbformat 41 sphinx 42 traitlets 43 ]; 44 45 # The package has not tests 46 doCheck = false; 47 48 JUPYTER_PATH = "${nbconvert}/share/jupyter"; 49 50 pythonImportsCheck = [ "nbsphinx" ]; 51 52 meta = with lib; { 53 description = "Jupyter Notebook Tools for Sphinx"; 54 homepage = "https://nbsphinx.readthedocs.io/"; 55 changelog = "https://github.com/spatialaudio/nbsphinx/blob/${version}/NEWS.rst"; 56 license = licenses.mit; 57 maintainers = [ ]; 58 }; 59}