Files
nixpkgs/pkgs/development/python-modules/manga-ocr/default.nix
2025-02-03 17:04:53 +01: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 ];
};
}