Files
nixpkgs/pkgs/development/python-modules/manga-ocr/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ laurent-f1z1 ];
};
}