diff options
author | Yorick <yorick@yorickvanpelt.nl> | 2023-09-20 22:37:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 22:37:15 +0200 |
commit | 68a7cc9b47fbb9d700cabc97f3a1069c25ed6832 (patch) | |
tree | 2ba3e1e79323cef8c253244d17a7d678de83f8f0 /pkgs/applications/graphics | |
parent | a8be39d4a9124d113edcd15bc8bace3804d51872 (diff) | |
parent | cbe40c63c0b8d88a4531b8200504bbb76e0b17c3 (diff) |
Merge pull request #253578 from cafkafk/cafk-normcap-init
normcap: init at 0.4.4
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/normcap/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/normcap/default.nix b/pkgs/applications/graphics/normcap/default.nix new file mode 100644 index 0000000000000..820ca99033947 --- /dev/null +++ b/pkgs/applications/graphics/normcap/default.nix @@ -0,0 +1,52 @@ +# From NUR https://github.com/nix-community/nur-combined/blob/6bddae47680482383b5769dd3aa7d82b88e6cbc8/repos/renesat/pkgs/normcap/default.nix + +{ + lib, + stdenv, + python3, + fetchFromGitHub, + tesseract4, + leptonica, + wl-clipboard +}: +python3.pkgs.buildPythonApplication rec { + pname = "normcap"; + version = "0.4.4"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "dynobo"; + repo = "normcap"; + rev = "v${version}"; + hash = "sha256-dShtmoqS9TC3PHuwq24OEOhYfBHGhDCma8Du8QCkFuI="; + }; + + buildInputs = [ + wl-clipboard + ]; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + tesseract4 + leptonica + pyside6 + + # Test + toml + pytest-qt + ]; + + postPatch = '' + substituteInPlace pyproject.toml --replace 'PySide6-Essentials = "6.5.1"' "" + ''; + + meta = with lib; { + description = "OCR powered screen-capture tool to capture information instead of images"; + homepage = "https://dynobo.github.io/normcap/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ cafkafk ]; + }; +} |