2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
2024-10-04 16:56:33 +00:00
|
|
|
python3Packages,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
2024-10-04 16:56:33 +00:00
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "manga-ocr";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.1.12";
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2024-10-04 16:56:33 +00:00
|
|
|
format = "pyproject";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kha-white";
|
2024-10-04 16:56:33 +00:00
|
|
|
repo = "manga-ocr";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-uSWnrHS59fNcF7ve3imMwwNJ+/dmplBAavbDoBkEgGc=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2024-05-15 15:35:15 +00:00
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
dependencies = [
|
2024-05-15 15:35:15 +00:00
|
|
|
fire
|
|
|
|
fugashi
|
|
|
|
jaconv
|
|
|
|
loguru
|
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
pyperclip
|
|
|
|
torch
|
|
|
|
transformers
|
|
|
|
unidic-lite
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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/${version}";
|
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ laurent-f1z1 ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
}
|