Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / graphics / normcap / default.nix
blob820ca990339471b78a2c4e1f9b806aaef4c61c88
1 # From NUR https://github.com/nix-community/nur-combined/blob/6bddae47680482383b5769dd3aa7d82b88e6cbc8/repos/renesat/pkgs/normcap/default.nix
4   lib,
5   stdenv,
6   python3,
7   fetchFromGitHub,
8   tesseract4,
9   leptonica,
10   wl-clipboard
12 python3.pkgs.buildPythonApplication rec {
13   pname = "normcap";
14   version = "0.4.4";
15   format = "pyproject";
17   src = fetchFromGitHub {
18     owner = "dynobo";
19     repo = "normcap";
20     rev = "v${version}";
21     hash = "sha256-dShtmoqS9TC3PHuwq24OEOhYfBHGhDCma8Du8QCkFuI=";
22   };
24   buildInputs = [
25     wl-clipboard
26   ];
28   nativeBuildInputs = with python3.pkgs; [
29     poetry-core
30   ];
32   propagatedBuildInputs = with python3.pkgs; [
33     tesseract4
34     leptonica
35     pyside6
37     # Test
38     toml
39     pytest-qt
40   ];
42   postPatch = ''
43     substituteInPlace pyproject.toml --replace 'PySide6-Essentials = "6.5.1"' ""
44   '';
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   };