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-04 12:14:45 +00:00
|
|
|
, sphinx-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";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.2.0";
|
|
|
|
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;
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-oNi9Gi7VLgszjL4ZxLLu88XnoEh2l1PaxqnwWce2Qbg=";
|
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-04 12:14:45 +00:00
|
|
|
sphinx-jquery
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
pythonRelaxDepsHook
|
|
|
|
readthedocs-sphinx-ext
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|