From 2484a750bbcbb122840e08e9c847e669a24f4ffb Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Thu, 19 Feb 2026 15:18:38 +0200 Subject: [PATCH] So based off that i made the binary wheel script part for no reason. Oh well. --- .../pythonPackages/prefab-specs.nix | 29 ++++--------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/custom/pkgs/by-category/pythonPackages/prefab-specs.nix b/custom/pkgs/by-category/pythonPackages/prefab-specs.nix index 54d7ce9..d87e37d 100644 --- a/custom/pkgs/by-category/pythonPackages/prefab-specs.nix +++ b/custom/pkgs/by-category/pythonPackages/prefab-specs.nix @@ -1,6 +1,5 @@ { lib, - # fetchPypi, hatchling, poetry-core, @@ -53,7 +52,6 @@ py-cpuinfo, seaborn, albumentations, - distutils, transformers, accelerate, ultralytics, @@ -83,7 +81,6 @@ let fast-langdetect mineru-vl-utils qwen-vl-utils - # thop httpx-retries robust-downloader doclayout-yolo @@ -267,18 +264,18 @@ in tqdm psutil py-cpuinfo - ultralytics-thop pandas seaborn albumentations huggingface-hub + ] + ++ [ + ultralytics-thop # thop ]; postInstall = '' - # avoid buildEnv collisions with ultralytics' YOLO CLI wrappers - rm -f "$out/bin/yolo" + rm -f "$out/bin/yolo" # collision with $'{pkgs.python3Packages.ultralytics}/bin/.yolo-wrapped ''; pythonRelaxDeps = [ - # satisfied by ultralytics-thop (module), but dist name differs "thop" ]; pythonRemoveDeps = [ @@ -289,23 +286,7 @@ in license = lib.licenses.agpl3Only; }; }; - # thop = { - # url = "https://pypi.org/project/thop/0.1.1.post2209072238/"; - # force = { - # format = "wheel"; - # python = "py3"; - # dist = "py3"; - # }; - # hash = "sha256-AUc8IlIxkn0q1xg1H3jr98/+avO+1GTE8boe8PfN2ic="; - # propagatedBuildDeps = [ - # distutils - # torch - # ]; - # meta = { - # description = "Count the MACs / FLOPs of your PyTorch model."; - # license = lib.licenses.mit; - # }; - # }; + # thop = { url = "use ultralytics-thop instead"; }; qwen-vl-utils = { url = "https://github.com/QwenLM/Qwen3-VL/tree/fe12058/qwen-vl-utils"; hash = "sha256-Vha/Tc4q2v5RCL31hB9U4ZrfIFxfZjgwM6PYlvDeoAQ=";