f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
37 lines
851 B
Nix
37 lines
851 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pythonOlder,
|
|
sphinx,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-docs-theme";
|
|
version = "2024.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python";
|
|
repo = "python-docs-theme";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-YKKF2e1La8jsCRS3M+LT+KmK0HxCRGQOof3MlVkMAuY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
pythonImportsCheck = [ "python_docs_theme" ];
|
|
|
|
meta = with lib; {
|
|
description = "Sphinx theme for CPython project";
|
|
homepage = "https://github.com/python/python-docs-theme";
|
|
changelog = "https://github.com/python/python-docs-theme/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|