Merge pull request #253578 from cafkafk/cafk-normcap-init

normcap: init at 0.4.4

authored by Yorick and committed by GitHub 68a7cc9b a8be39d4

+54
+52
pkgs/applications/graphics/normcap/default.nix
··· 1 + # From NUR https://github.com/nix-community/nur-combined/blob/6bddae47680482383b5769dd3aa7d82b88e6cbc8/repos/renesat/pkgs/normcap/default.nix 2 + 3 + { 4 + lib, 5 + stdenv, 6 + python3, 7 + fetchFromGitHub, 8 + tesseract4, 9 + leptonica, 10 + wl-clipboard 11 + }: 12 + python3.pkgs.buildPythonApplication rec { 13 + pname = "normcap"; 14 + version = "0.4.4"; 15 + format = "pyproject"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "dynobo"; 19 + repo = "normcap"; 20 + rev = "v${version}"; 21 + hash = "sha256-dShtmoqS9TC3PHuwq24OEOhYfBHGhDCma8Du8QCkFuI="; 22 + }; 23 + 24 + buildInputs = [ 25 + wl-clipboard 26 + ]; 27 + 28 + nativeBuildInputs = with python3.pkgs; [ 29 + poetry-core 30 + ]; 31 + 32 + propagatedBuildInputs = with python3.pkgs; [ 33 + tesseract4 34 + leptonica 35 + pyside6 36 + 37 + # Test 38 + toml 39 + pytest-qt 40 + ]; 41 + 42 + postPatch = '' 43 + substituteInPlace pyproject.toml --replace 'PySide6-Essentials = "6.5.1"' "" 44 + ''; 45 + 46 + meta = with lib; { 47 + description = "OCR powered screen-capture tool to capture information instead of images"; 48 + homepage = "https://dynobo.github.io/normcap/"; 49 + license = licenses.gpl3Plus; 50 + maintainers = with maintainers; [ cafkafk ]; 51 + }; 52 + }
+2
pkgs/top-level/all-packages.nix
··· 34636 34636 34637 34637 nomacs = libsForQt5.callPackage ../applications/graphics/nomacs { }; 34638 34638 34639 + normcap = callPackage ../applications/graphics/normcap { }; 34640 + 34639 34641 notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { }; 34640 34642 34641 34643 notepadqq = libsForQt5.callPackage ../applications/editors/notepadqq { };