depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-book-theme/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

46 lines
978 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, sphinx
, pydata-sphinx-theme
, jupyter-book
}:
buildPythonPackage rec {
pname = "sphinx-book-theme";
version = "1.0.0";
format = "wheel";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit version format;
dist = "py3";
python = "py3";
pname = "sphinx_book_theme";
hash = "sha256-9rq6eIjVpjMoohDplgp6bpUeljLXTttvzkjJ1djCh2g=";
};
propagatedBuildInputs = [
pydata-sphinx-theme
sphinx
];
pythonImportsCheck = [
"sphinx_book_theme"
];
passthru.tests = {
inherit jupyter-book;
};
meta = with lib; {
description = "A 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; [ marsam ];
};
}