38 lines
823 B
Nix
38 lines
823 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pythonOlder,
|
|
sphinx,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-docs-theme";
|
|
version = "2024.12";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python";
|
|
repo = "python-docs-theme";
|
|
tag = version;
|
|
hash = "sha256-LZFcKmFnALZ5ZV8XbRfT74Wv5r7he/y58mCu4uydgw8=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [ 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 ];
|
|
};
|
|
}
|