Files
nixpkgs/pkgs/development/python-modules/manga-ocr/default.nix
Michael Daniels 4b7d598de4 Reapply "Merge branch 'staging-next' into staging"
This reverts commit 4982f4c206.

The eval failure was not introduced by my merge!
2026-02-27 19:47:50 -05:00

58 lines
1021 B
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 = [ ];
};
}