diff --git a/custom/pkgs/by-category/pythonPackages/prefab-specs.nix b/custom/pkgs/by-category/pythonPackages/prefab-specs.nix index fcb8a9c..648c6dc 100644 --- a/custom/pkgs/by-category/pythonPackages/prefab-specs.nix +++ b/custom/pkgs/by-category/pythonPackages/prefab-specs.nix @@ -82,6 +82,7 @@ let thop httpx-retries robust-downloader + doclayout-yolo ; in { @@ -153,10 +154,10 @@ in }; ascii-colors = { url = "https://github.com/ParisNeo/ascii_colors/tree/817a21485136635e3da89ff08444183254b25aab"; - hash = "sha256-jiolJzsBQMp9/DHdHTixJGvXoS19vAp/S7+8PyLARoo="; + hash = "sha256-zK4vM2sOfEFDJBpFjcJmQXljg3pgprP+VFuuk5JNWnE="; force.version = "0.11.12"; propagatedBuildDeps = [ - wcwidth + # wcwidth ]; meta = { description = "A python library for displaying stuff on the console in a pretty way"; @@ -193,7 +194,7 @@ in qwen-vl-utils ]; optional-dependencies = { - core = with self; [ + core = [ doclayout-yolo ] # ++ (with mineru.optional-dependencies; [ @@ -251,12 +252,8 @@ in dist = "py3"; }; hash = "sha256-AUc8IlIxkn0q1xg1H3jr98/+avO+1GTE8boe8PfN2ic="; - nativeBuildDeps = [ - ninja - ]; propagatedBuildDeps = [ distutils - torch ]; meta = { description = "Count the MACs / FLOPs of your PyTorch model."; diff --git a/custom/pkgs/lib/prefab.nix b/custom/pkgs/lib/prefab.nix index 3b12efb..2786b5a 100644 --- a/custom/pkgs/lib/prefab.nix +++ b/custom/pkgs/lib/prefab.nix @@ -87,6 +87,8 @@ let pythonRelaxDeps = pythonRelaxDeps; pythonImportsCheck = imports; + dontBuild = (force.format or null) == "wheel"; + installCheckPhase = '' runHook preInstallCheck ${builtins.concatStringsSep "\n" (