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 = "2024.4"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "python"; 19 repo = "python-docs-theme"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-x1r71/Urpqf0FtL2Bao5SgsRQfmwym34F7qYzxFkT5c="; 22 }; 23 24 nativeBuildInputs = [ flit-core ]; 25 26 propagatedBuildInputs = [ 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/${version}/CHANGELOG.rst"; 34 license = licenses.psfl; 35 maintainers = with maintainers; [ kaction ]; 36 }; 37}