1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/by-name/rc/rclip/package.nix
2023-12-06 16:20:02 +08:00

47 lines
969 B
Nix

{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "rclip";
version = "1.7.6";
pyproject = true;
src = fetchFromGitHub {
owner = "yurijmikhalevich";
repo = "rclip";
rev = "v${version}";
hash = "sha256-lWaWq+dcAa/2pONka4xRpixqDuL6iYDF46vCyCmVWwE=";
};
nativeBuildInputs = with python3Packages; [
poetry-core
];
propagatedBuildInputs = with python3Packages; [
open-clip-torch
pillow
requests
torch
torchvision
tqdm
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
pythonImportsCheck = [ "rclip" ];
disabledTestPaths = [
# requires network
"tests/e2e/test_rclip.py"
];
meta = with lib; {
description = "AI-Powered Command-Line Photo Search Tool";
homepage = "https://github.com/yurijmikhalevich/rclip";
license = licenses.mit;
maintainers = with maintainers; [ iynaix ];
mainProgram = "rclip";
};
}