mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
rclip: 2.1.6 -> 3.0.10 (#522443)
This commit is contained in:
commit
4f60c039d3
1 changed files with 13 additions and 16 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue