Commit 9884d892 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent e79c1007
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -5,38 +5,41 @@
}:
python3Packages.buildPythonApplication rec {
  pname = "rclip";
  version = "1.10.3";
  version = "1.11.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "yurijmikhalevich";
    repo = "rclip";
    rev = "refs/tags/v${version}";
    hash = "sha256-MdqO6X1dbIzmDuDSjrbmKbQfPIPcyhVIbodERYu9PZU=";
    hash = "sha256-bu9kz0CCq78lp+d2uPoApzZnVybwyWD/fwgnXYG52dk=";
  };

  nativeBuildInputs = with python3Packages; [
  build-system = with python3Packages; [
    poetry-core
  ];

  propagatedBuildInputs = with python3Packages; [
  dependencies = with python3Packages; [
    numpy
    open-clip-torch
    pillow
    requests
    torch
    torchvision
    tqdm
    rawpy
  ];

  nativeCheckInputs = with python3Packages; [ pytestCheckHook ];

  pythonRelaxDeps = [
    "pillow"
    "torch"
    "torchvision"
  ];

  pythonImportsCheck = [ "rclip" ];

  nativeCheckInputs = with python3Packages; [ pytestCheckHook ];

  disabledTestPaths = [
    # requires network
    "tests/e2e/test_rclip.py"
@@ -49,11 +52,12 @@ python3Packages.buildPythonApplication rec {
    "test_loads_full_model_when_text_processing_only_requested_and_checkpoint_doesnt_exist"
  ];

  meta = with lib; {
  meta = {
    description = "AI-Powered Command-Line Photo Search Tool";
    homepage = "https://github.com/yurijmikhalevich/rclip";
    license = licenses.mit;
    maintainers = with maintainers; [ iynaix ];
    changelog = "https://github.com/yurijmikhalevich/rclip/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ iynaix ];
    mainProgram = "rclip";
  };
}