1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pythonOlder,
7 sphinx,
8}:
9
10buildPythonPackage rec {
11 pname = "python-docs-theme";
12 version = "2025.9.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.12";
16
17 src = fetchFromGitHub {
18 owner = "python";
19 repo = "python-docs-theme";
20 tag = version;
21 hash = "sha256-G9QhrNqwSonyCQXxBv1GkUx39GyOQs+0gciJDQwWvVQ=";
22 };
23
24 build-system = [ flit-core ];
25
26 dependencies = [ sphinx ];
27
28 pythonImportsCheck = [ "python_docs_theme" ];
29
30 meta = with lib; {
31 description = "Sphinx theme for CPython project";
32 homepage = "https://github.com/python/python-docs-theme";
33 changelog = "https://github.com/python/python-docs-theme/blob/${src.tag}/CHANGELOG.rst";
34 license = licenses.psfl;
35 maintainers = with maintainers; [ kaction ];
36 };
37}