rclip: 2.1.6 -> 3.0.10 (#522443)

This commit is contained in:
Peder Bergebakken Sundt 2026-06-09 20:27:24 +00:00 committed by GitHub
commit 4f60c039d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";