Merge pull request #296444 from wolfgangwalther/sphinx-rtd-dark-mode
python3Packages.sphinx-rtd-dark-mode: init at 1.3.0
This commit is contained in:
commit
1bebf93dd9
3 changed files with 65 additions and 0 deletions
|
@ -21299,6 +21299,15 @@
|
|||
githubId = 8378365;
|
||||
name = "P. R. d. O.";
|
||||
};
|
||||
wolfgangwalther = {
|
||||
name = "Wolfgang Walther";
|
||||
email = "walther@technowledgy.de";
|
||||
github = "wolfgangwalther";
|
||||
githubId = 9132420;
|
||||
keys = [{
|
||||
fingerprint = "F943 A0BC 720C 5BEF 73CD E02D B398 93FA 5F65 CAE1";
|
||||
}];
|
||||
};
|
||||
womfoo = {
|
||||
email = "kranium@gikos.net";
|
||||
github = "womfoo";
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
{ buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, pynose
|
||||
, setuptools
|
||||
, sphinx
|
||||
, sphinx-rtd-theme
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinx-rtd-dark-mode";
|
||||
version = "1.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MrDogeBro";
|
||||
repo = "sphinx_rtd_dark_mode";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-N5KG2Wqn9wfGNY3VH4FnBce1aZUbnvVmwD10Loe0Qn4=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
sphinx-rtd-theme
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pynose
|
||||
sphinx
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
nosetests tests
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sphinx_rtd_dark_mode"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Adds a toggleable dark mode to the Read the Docs theme for Sphinx.";
|
||||
homepage = "https://github.com/MrDogeBro/sphinx_rtd_dark_mode";
|
||||
changelog = "https://github.com/MrDogeBro/sphinx_rtd_dark_mode/releases/tag/v${version}";
|
||||
maintainers = with maintainers; [ wolfgangwalther ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -14142,6 +14142,8 @@ self: super: with self; {
|
|||
|
||||
sphinx-mdinclude = callPackage ../development/python-modules/sphinx-mdinclude { };
|
||||
|
||||
sphinx-rtd-dark-mode = callPackage ../development/python-modules/sphinx-rtd-dark-mode { };
|
||||
|
||||
sphinx-rtd-theme = callPackage ../development/python-modules/sphinx-rtd-theme { };
|
||||
|
||||
sphinx-serve = callPackage ../development/python-modules/sphinx-serve { };
|
||||
|
|
Loading…
Reference in a new issue