python312Packages.mkdocs: fix cross build

setuptools is required unconditionally as tool.hatch.build.hooks.custom
This commit is contained in:
FliegendeWurst
2025-04-15 15:31:01 +02:00
parent 52fa4abe16
commit 438fd26b7f
@@ -48,7 +48,11 @@ buildPythonPackage rec {
hash = "sha256-JQSOgV12iYE6FubxdoJpWy9EHKFxyKoxrm/7arCn9Ak=";
};
build-system = [ hatchling ];
build-system = [
hatchling
# babel, setuptools required as "build hooks"
babel
] ++ lib.optionals (pythonAtLeast "3.12") [ setuptools ];
dependencies = [
click
@@ -67,7 +71,7 @@ buildPythonPackage rec {
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
optional-dependencies = {
i18n = [ babel ] ++ lib.optionals (pythonAtLeast "3.12") [ setuptools ];
i18n = [ babel ];
};
nativeCheckInputs = [