Commit ccfb9d20 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

python312Packages.docling-serve: add `withUI` boolean parameter

parent 02dcbf6f
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@
  python-multipart,
  uvicorn,
  websockets,
  gradio,
  nodejs,
  which,
  withUI ? false,
}:

buildPythonPackage rec {
@@ -43,7 +47,15 @@ buildPythonPackage rec {
    python-multipart
    uvicorn
    websockets
  ] ++ lib.optionals withUI optional-dependencies.ui;

  optional-dependencies = {
    ui = [
      gradio
      nodejs
      which
    ];
  };

  pythonImportsCheck = [
    "docling_serve"