Files
nixpkgs/pkgs/development/python-modules/python-docs-theme/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
822 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pythonOlder,
sphinx,
}:
buildPythonPackage rec {
pname = "python-docs-theme";
version = "2025.10";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "python";
repo = "python-docs-theme";
tag = version;
hash = "sha256-vuQsGHj39znL3RvSvnc9ET1g30/FcSnDnFby2bm84hY=";
};
build-system = [ flit-core ];
dependencies = [ sphinx ];
pythonImportsCheck = [ "python_docs_theme" ];
meta = {
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 = lib.licenses.psfl;
maintainers = with lib.maintainers; [ kaction ];
};
}