From c6ea261c3adfb36511c7ad15622b1b3ce8e2c17e Mon Sep 17 00:00:00 2001 From: Lin Xianyi Date: Thu, 21 May 2026 08:34:25 +0800 Subject: [PATCH] rclip: 2.1.6 -> 3.0.10 Diff: https://github.com/yurijmikhalevich/rclip/compare/v2.1.6...v3.0.10 Changelog: https://github.com/yurijmikhalevich/rclip/releases/tag/v3.0.10 --- pkgs/by-name/rc/rclip/package.nix | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/rc/rclip/package.nix b/pkgs/by-name/rc/rclip/package.nix index bb34b57d342f..cc8950b3f2dd 100644 --- a/pkgs/by-name/rc/rclip/package.nix +++ b/pkgs/by-name/rc/rclip/package.nix @@ -6,45 +6,49 @@ }: python3Packages.buildPythonApplication (finalAttrs: { pname = "rclip"; - version = "2.1.6"; + version = "3.0.10"; pyproject = true; src = fetchFromGitHub { owner = "yurijmikhalevich"; repo = "rclip"; tag = "v${finalAttrs.version}"; - hash = "sha256-95OiG3I9S9eJHMYkRd9Y52XnCROFV98fvmUs4SRBF4s="; + hash = "sha256-FRsdZ0sM8Ato+v7239bZygZ98eYOQqiD0vLXa/+ybIg="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.11.12,<0.12.0" uv_build + ''; + build-system = with python3Packages; [ - poetry-core + uv-build ]; dependencies = with python3Packages; [ + ftfy + huggingface-hub numpy - open-clip-torch + onnxruntime pillow pillow-heif + regex requests - torch - torchvision tqdm rawpy ]; pythonRelaxDeps = [ "numpy" - "open_clip_torch" "pillow" "rawpy" - "torch" - "torchvision" ]; pythonImportsCheck = [ "rclip" ]; nativeCheckInputs = [ versionCheckHook + python3Packages.jinja2 ] ++ (with python3Packages; [ pytestCheckHook ]); @@ -53,13 +57,6 @@ python3Packages.buildPythonApplication (finalAttrs: { "tests/e2e/test_rclip.py" ]; - disabledTests = [ - # requires network - "test_text_model_produces_the_same_vector_as_the_main_model" - "test_loads_text_model_when_text_processing_only_requested_and_checkpoint_exists" - "test_loads_full_model_when_text_processing_only_requested_and_checkpoint_doesnt_exist" - ]; - meta = { description = "AI-Powered Command-Line Photo Search Tool"; homepage = "https://github.com/yurijmikhalevich/rclip";