2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, docutils
|
2020-04-24 23:36:52 +00:00
|
|
|
, sphinx
|
|
|
|
, readthedocs-sphinx-ext
|
2023-03-15 16:39:30 +00:00
|
|
|
, sphinxcontrib-jquery
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonRelaxDepsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "sphinx-rtd-theme";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.0.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "sphinx_rtd_theme";
|
|
|
|
inherit version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-vV17gGIkBnYgc6BO+PrcX5FRJhVj1HAn3gmRDOA6/ms=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
preBuild = ''
|
|
|
|
# Don't use NPM to fetch assets. Assets are included in sdist.
|
|
|
|
export CI=1
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
|
|
|
sphinx
|
2023-03-15 16:39:30 +00:00
|
|
|
sphinxcontrib-jquery
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
readthedocs-sphinx-ext
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
# docutils 0.21 compat
|
|
|
|
"test_basic"
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"docutils"
|
|
|
|
"sphinxcontrib-jquery"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sphinx_rtd_theme"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-03-04 12:14:45 +00:00
|
|
|
description = "Sphinx theme for readthedocs.org";
|
2021-04-26 19:14:03 +00:00
|
|
|
homepage = "https://github.com/readthedocs/sphinx_rtd_theme";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/readthedocs/sphinx_rtd_theme/blob/${version}/docs/changelog.rst";
|
2021-04-26 19:14:03 +00:00
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|