Commit 438fd26b authored by FliegendeWurst's avatar FliegendeWurst
Browse files

python312Packages.mkdocs: fix cross build

setuptools is required unconditionally as tool.hatch.build.hooks.custom
parent 52fa4abe
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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 = [