mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
37 lines
823 B
Nix
37 lines
823 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pythonOlder,
|
|
sphinx,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-docs-theme";
|
|
version = "2025.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python";
|
|
repo = "python-docs-theme";
|
|
tag = version;
|
|
hash = "sha256-dcxlZGPB36q2MO2WHtshkgNE5ryKtI/RfuVG7hcLcas=";
|
|
};
|
|
|
|
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/${src.tag}/CHANGELOG.rst";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|