Files
nixpkgs/pkgs/by-name/rc/rclip/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.5 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
pname = "rclip";
version = "2.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "yurijmikhalevich";
repo = "rclip";
tag = "v${version}";
hash = "sha256-ScNyy5qWDskKgqxjfRU7y8WBCdThXTjlE3x0oIa8fhU=";
};
build-system = with python3Packages; [
poetry-core
];
dependencies = with python3Packages; [
numpy
open-clip-torch
pillow
requests
torch
torchvision
tqdm
rawpy
];
pythonRelaxDeps = [
"numpy"
"open_clip_torch"
"pillow"
"rawpy"
"torch"
"torchvision"
];
pythonImportsCheck = [ "rclip" ];
nativeCheckInputs = [
versionCheckHook
]
++ (with python3Packages; [ pytestCheckHook ]);
versionCheckProgramArg = "--version";
disabledTestPaths = [
# requires network
"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";
changelog = "https://github.com/yurijmikhalevich/rclip/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ iynaix ];
mainProgram = "rclip";
};
}