depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-book-theme/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
972 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
sphinx,
pydata-sphinx-theme,
jupyter-book,
}:
buildPythonPackage rec {
pname = "sphinx-book-theme";
version = "1.1.3";
format = "wheel";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit version format;
dist = "py3";
python = "py3";
pname = "sphinx_book_theme";
hash = "sha256-pVSpp6w4gZeah6KxD2M6oqVwbnIhihD3G+OLPJ6DGuk=";
};
propagatedBuildInputs = [
pydata-sphinx-theme
sphinx
];
pythonImportsCheck = [ "sphinx_book_theme" ];
passthru.tests = {
inherit jupyter-book;
};
meta = with lib; {
description = "Clean book theme for scientific explanations and documentation with Sphinx";
homepage = "https://github.com/executablebooks/sphinx-book-theme";
changelog = "https://github.com/executablebooks/sphinx-book-theme/raw/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}