87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
46 lines
978 B
Nix
46 lines
978 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, sphinx
|
|
, pydata-sphinx-theme
|
|
, jupyter-book
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-book-theme";
|
|
version = "1.0.1";
|
|
|
|
format = "wheel";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit version format;
|
|
dist = "py3";
|
|
python = "py3";
|
|
pname = "sphinx_book_theme";
|
|
hash = "sha256-0V+CSLNxippr4LphejLRWR+fo5xhRGm/rOd3uganO3U=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|