diff --git a/pkgs/by-name/kh/khard/khard-sphinx.patch b/pkgs/by-name/kh/khard/khard-sphinx.patch new file mode 100644 index 000000000000..b35b6599dcfe --- /dev/null +++ b/pkgs/by-name/kh/khard/khard-sphinx.patch @@ -0,0 +1,13 @@ +diff '--color=auto' -u -r khard-0.20.1/doc/source/conf.py new/doc/source/conf.py +--- khard-0.20.1/doc/source/conf.py 2025-07-29 04:47:18.000000000 +0800 ++++ new/doc/source/conf.py 2026-03-29 12:53:42.904389827 +0800 +@@ -52,8 +52,8 @@ + 'sphinx.ext.autodoc', # https://pypi.org/project/sphinx-autodoc-typehints/ + 'sphinx.ext.autosectionlabel', + 'sphinx.ext.todo', +- 'sphinx_autodoc_typehints', # https://pypi.org/project/sphinx-autodoc-typehints/ + 'sphinxarg.ext', ++ 'sphinx_autodoc_typehints', # https://pypi.org/project/sphinx-autodoc-typehints/ + ] + + autoapi_type = 'python' diff --git a/pkgs/by-name/kh/khard/package.nix b/pkgs/by-name/kh/khard/package.nix index dff54ca96191..81e15643c02f 100644 --- a/pkgs/by-name/kh/khard/package.nix +++ b/pkgs/by-name/kh/khard/package.nix @@ -15,6 +15,8 @@ python3.pkgs.buildPythonApplication (finalAttrs: { hash = "sha256-s+W/rfa11+jxaNDDIMdLlU5NDvQZSyh5EUD+V3pI+Ug="; }; + patches = [ ./khard-sphinx.patch ]; + build-system = with python3.pkgs; [ setuptools setuptools-scm