-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253578 from cafkafk/cafk-normcap-init
normcap: init at 0.4.4
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters