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