From b9d6ff1104fd2090fb55c6ef5d88f14bf759a6fb Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 30 Mar 2024 17:31:12 +0100 Subject: [PATCH 1/2] maintainers: add wolfgangwalther --- maintainers/maintainer-list.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 029958cbf81f..da4bb6e5b08e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -21293,6 +21293,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"; From 7493cfa9749946b9bb780732ff4123759af70889 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 16 Mar 2024 16:06:31 +0100 Subject: [PATCH 2/2] python3Packages.sphinx-rtd-dark-mode: init at 1.3.0 sphinx-rtd-dark-mode adds a toggleable dark mode to sphinx-rtd-theme. https://github.com/MrDogeBro/sphinx_rtd_dark_mode --- .../sphinx-rtd-dark-mode/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix diff --git a/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix b/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix new file mode 100644 index 000000000000..dbe40c0fcafd --- /dev/null +++ b/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 541bc2d28fd1..d0ddb44e7351 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14136,6 +14136,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 { };