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