1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, sphinx 6, pydata-sphinx-theme 7, jupyter-book 8}: 9 10buildPythonPackage rec { 11 pname = "sphinx-book-theme"; 12 version = "1.0.1"; 13 14 format = "wheel"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit version format; 20 dist = "py3"; 21 python = "py3"; 22 pname = "sphinx_book_theme"; 23 hash = "sha256-0V+CSLNxippr4LphejLRWR+fo5xhRGm/rOd3uganO3U="; 24 }; 25 26 propagatedBuildInputs = [ 27 pydata-sphinx-theme 28 sphinx 29 ]; 30 31 pythonImportsCheck = [ 32 "sphinx_book_theme" 33 ]; 34 35 passthru.tests = { 36 inherit jupyter-book; 37 }; 38 39 meta = with lib; { 40 description = "A clean book theme for scientific explanations and documentation with Sphinx"; 41 homepage = "https://github.com/executablebooks/sphinx-book-theme"; 42 changelog = "https://github.com/executablebooks/sphinx-book-theme/raw/v${version}/CHANGELOG.md"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ marsam ]; 45 }; 46}