rclip: 1.10.3 -> 1.11.0 (#359848)

authored by Nick Cao and committed by GitHub 64b2f13b e439619e

+113 -13
+21 -13
pkgs/by-name/rc/rclip/package.nix
··· 1 - { lib 2 - , python3Packages 3 - , fetchFromGitHub 4 }: 5 python3Packages.buildPythonApplication rec { 6 pname = "rclip"; 7 - version = "1.10.3"; 8 pyproject = true; 9 10 src = fetchFromGitHub { 11 owner = "yurijmikhalevich"; 12 repo = "rclip"; 13 rev = "refs/tags/v${version}"; 14 - hash = "sha256-MdqO6X1dbIzmDuDSjrbmKbQfPIPcyhVIbodERYu9PZU="; 15 }; 16 17 - nativeBuildInputs = with python3Packages; [ 18 poetry-core 19 ]; 20 21 - propagatedBuildInputs = with python3Packages; [ 22 open-clip-torch 23 pillow 24 requests 25 torch 26 torchvision 27 tqdm 28 ]; 29 30 - nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 31 32 - pythonRelaxDeps = [ "torch" "torchvision" ]; 33 34 - pythonImportsCheck = [ "rclip" ]; 35 36 disabledTestPaths = [ 37 # requires network ··· 45 "test_loads_full_model_when_text_processing_only_requested_and_checkpoint_doesnt_exist" 46 ]; 47 48 - meta = with lib; { 49 description = "AI-Powered Command-Line Photo Search Tool"; 50 homepage = "https://github.com/yurijmikhalevich/rclip"; 51 - license = licenses.mit; 52 - maintainers = with maintainers; [ iynaix ]; 53 mainProgram = "rclip"; 54 }; 55 }
··· 1 + { 2 + lib, 3 + python3Packages, 4 + fetchFromGitHub, 5 }: 6 python3Packages.buildPythonApplication rec { 7 pname = "rclip"; 8 + version = "1.11.0"; 9 pyproject = true; 10 11 src = fetchFromGitHub { 12 owner = "yurijmikhalevich"; 13 repo = "rclip"; 14 rev = "refs/tags/v${version}"; 15 + hash = "sha256-bu9kz0CCq78lp+d2uPoApzZnVybwyWD/fwgnXYG52dk="; 16 }; 17 18 + build-system = with python3Packages; [ 19 poetry-core 20 ]; 21 22 + dependencies = with python3Packages; [ 23 + numpy 24 open-clip-torch 25 pillow 26 requests 27 torch 28 torchvision 29 tqdm 30 + rawpy 31 ]; 32 33 + pythonRelaxDeps = [ 34 + "pillow" 35 + "torch" 36 + "torchvision" 37 + ]; 38 39 + pythonImportsCheck = [ "rclip" ]; 40 41 + nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 42 43 disabledTestPaths = [ 44 # requires network ··· 52 "test_loads_full_model_when_text_processing_only_requested_and_checkpoint_doesnt_exist" 53 ]; 54 55 + meta = { 56 description = "AI-Powered Command-Line Photo Search Tool"; 57 homepage = "https://github.com/yurijmikhalevich/rclip"; 58 + changelog = "https://github.com/yurijmikhalevich/rclip/releases/tag/v${version}"; 59 + license = lib.licenses.mit; 60 + maintainers = with lib.maintainers; [ iynaix ]; 61 mainProgram = "rclip"; 62 }; 63 }
+90
pkgs/development/python-modules/rawpy/default.nix
···
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + 6 + # build-system 7 + cython, 8 + setuptools, 9 + 10 + # nativeBuildInputs 11 + pkg-config, 12 + 13 + # buildInputs 14 + libraw, 15 + 16 + # dependencies 17 + numpy, 18 + 19 + # tests 20 + imageio, 21 + pytestCheckHook, 22 + scikit-image, 23 + }: 24 + 25 + buildPythonPackage rec { 26 + pname = "rawpy"; 27 + version = "0.23.2"; 28 + pyproject = true; 29 + 30 + src = fetchFromGitHub { 31 + owner = "letmaik"; 32 + repo = "rawpy"; 33 + rev = "refs/tags/v${version}"; 34 + hash = "sha256-s7/YbD5Jy9Jzry817djG63Zs4It8b1S95qmcJgPYGZQ="; 35 + }; 36 + 37 + build-system = [ 38 + cython 39 + numpy 40 + setuptools 41 + ]; 42 + 43 + nativeBuildInputs = [ 44 + pkg-config 45 + ]; 46 + 47 + buildInputs = [ 48 + libraw 49 + ]; 50 + 51 + dependencies = [ 52 + numpy 53 + ]; 54 + 55 + env = { 56 + RAWPY_USE_SYSTEM_LIBRAW = 1; 57 + }; 58 + 59 + pythonImportsCheck = [ 60 + "rawpy" 61 + "rawpy._rawpy" 62 + ]; 63 + 64 + # Delete the source files to load the library from the installed folder instead of the source files 65 + preCheck = '' 66 + rm -rf rawpy 67 + ''; 68 + 69 + nativeCheckInputs = [ 70 + imageio 71 + pytestCheckHook 72 + scikit-image 73 + ]; 74 + 75 + disabledTests = [ 76 + # rawpy._rawpy.LibRawFileUnsupportedError: b'Unsupported file format or not RAW file' 77 + "testFoveonFileOpenAndPostProcess" 78 + "testThumbExtractBitmap" 79 + ]; 80 + 81 + meta = { 82 + description = "RAW image processing for Python, a wrapper for libraw"; 83 + homepage = "https://github.com/letmaik/rawpy"; 84 + license = with lib.licenses; [ 85 + lgpl21Only 86 + mit 87 + ]; 88 + maintainers = with lib.maintainers; [ GaetanLepage ]; 89 + }; 90 + }
+2
pkgs/top-level/python-packages.nix
··· 13666 13667 rawkit = callPackage ../development/python-modules/rawkit { }; 13668 13669 ray = callPackage ../development/python-modules/ray { }; 13670 13671 raylib-python-cffi = callPackage ../development/python-modules/raylib-python-cffi {};
··· 13666 13667 rawkit = callPackage ../development/python-modules/rawkit { }; 13668 13669 + rawpy = callPackage ../development/python-modules/rawpy { }; 13670 + 13671 ray = callPackage ../development/python-modules/ray { }; 13672 13673 raylib-python-cffi = callPackage ../development/python-modules/raylib-python-cffi {};