2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, sphinx
|
|
|
|
, pydata-sphinx-theme
|
2023-03-04 12:14:45 +00:00
|
|
|
, jupyter-book
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-book-theme";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.0.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version format;
|
|
|
|
dist = "py3";
|
|
|
|
python = "py3";
|
|
|
|
pname = "sphinx_book_theme";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-0V+CSLNxippr4LphejLRWR+fo5xhRGm/rOd3uganO3U=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pydata-sphinx-theme
|
2023-03-04 12:14:45 +00:00
|
|
|
sphinx
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sphinx_book_theme"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit jupyter-book;
|
|
|
|
};
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A clean book theme for scientific explanations and documentation with Sphinx";
|
|
|
|
homepage = "https://github.com/executablebooks/sphinx-book-theme";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/executablebooks/sphinx-book-theme/raw/v${version}/CHANGELOG.md";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|