biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / sphinx-rtd-dark-mode / default.nix
blob863f93848846dd69c2bfe4e302475ba66e41b8ec
2   buildPythonPackage,
3   fetchFromGitHub,
4   lib,
5   pytestCheckHook,
6   setuptools,
7   sphinx,
8   sphinx-rtd-theme,
9 }:
11 buildPythonPackage rec {
12   pname = "sphinx-rtd-dark-mode";
13   version = "1.3.0";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "MrDogeBro";
18     repo = "sphinx_rtd_dark_mode";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-N5KG2Wqn9wfGNY3VH4FnBce1aZUbnvVmwD10Loe0Qn4=";
21   };
23   build-system = [ setuptools ];
25   dependencies = [ sphinx-rtd-theme ];
27   nativeCheckInputs = [
28     pytestCheckHook
29     sphinx
30   ];
32   pytestFlagsArray = [ "tests/build.py" ];
34   pythonImportsCheck = [ "sphinx_rtd_dark_mode" ];
36   meta = with lib; {
37     description = "Adds a toggleable dark mode to the Read the Docs theme for Sphinx";
38     homepage = "https://github.com/MrDogeBro/sphinx_rtd_dark_mode";
39     changelog = "https://github.com/MrDogeBro/sphinx_rtd_dark_mode/releases/tag/v${version}";
40     maintainers = with maintainers; [ wolfgangwalther ];
41     license = licenses.mit;
42   };