Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication {
|
|
pname = "owocr";
|
|
version = "1.7.5-unstable-2024-06-26";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AuroraWright";
|
|
repo = "owocr";
|
|
rev = "743c64aa16a760f87bf5ea1f54364d828eb3eddb"; # no tags
|
|
hash = "sha256-TXQwJRgRp7fZBN0r4XGVtlb+iOMRqEUf+LbfBG/vsr8=";
|
|
};
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
fire
|
|
jaconv
|
|
loguru
|
|
numpy
|
|
pillow
|
|
pyperclipfix
|
|
pynput
|
|
websockets
|
|
desktop-notifier
|
|
mss
|
|
pysbd
|
|
langid
|
|
psutil
|
|
pywinctl
|
|
# extra optional libs for OCR engines
|
|
azure-ai-vision-imageanalysis
|
|
easyocr
|
|
pyjson5 # Google Lens
|
|
google-cloud-vision
|
|
manga-ocr
|
|
rapidocr
|
|
requests # winRT OCR
|
|
];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
meta = {
|
|
description = "Optical character recognition for Japanese text";
|
|
homepage = "https://github.com/AuroraWright/owocr";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|