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