Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
setuptools-scm,
fire,
fugashi,
jaconv,
loguru,
numpy,
pillow,
pyperclip,
torch,
transformers,
unidic-lite,
}:
buildPythonPackage rec {
pname = "manga-ocr";
version = "0.1.14";
pyproject = true;
src = fetchFromGitHub {
owner = "kha-white";
repo = "manga-ocr";
tag = "v${version}";
hash = "sha256-fCLgFeo6GYPSpCX229TK2MXTKt3p1tQV06phZYD6UeE=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
fire
fugashi
jaconv
loguru
numpy
pillow
pyperclip
torch
transformers
unidic-lite
];
meta = with lib; {
mainProgram = "manga_ocr";
description = "Optical character recognition for Japanese text, with the main focus being Japanese manga";
homepage = "https://github.com/kha-white/manga-ocr";
changelog = "https://github.com/kha-white/manga-ocr/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ laurent-f1z1 ];
};
}