25 lines
379 B
Nix
25 lines
379 B
Nix
{
|
|
python3Packages,
|
|
nixosTests,
|
|
withUI ? false,
|
|
withTesserocr ? false,
|
|
withRapidocr ? false,
|
|
withCPU ? false,
|
|
}:
|
|
|
|
(python3Packages.toPythonApplication (
|
|
python3Packages.docling-serve.override {
|
|
inherit
|
|
withUI
|
|
withTesserocr
|
|
withRapidocr
|
|
withCPU
|
|
;
|
|
}
|
|
))
|
|
// {
|
|
passthru.tests = {
|
|
docling-serve = nixosTests.docling-serve;
|
|
};
|
|
}
|