biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / manga-ocr / default.nix
blobe5ee0bf3c36a55e49bef274faed09f2fd7a12339
2   lib,
3   fetchFromGitHub,
4   python3Packages,
5 }:
7 with python3Packages;
9 buildPythonPackage rec {
10   pname = "manga-ocr";
11   version = "0.1.12";
12   disabled = pythonOlder "3.7";
13   format = "pyproject";
15   src = fetchFromGitHub {
16     owner = "kha-white";
17     repo = "manga-ocr";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-uSWnrHS59fNcF7ve3imMwwNJ+/dmplBAavbDoBkEgGc=";
20   };
22   build-system = [
23     setuptools
24     setuptools-scm
25   ];
27   dependencies = [
28     fire
29     fugashi
30     jaconv
31     loguru
32     numpy
33     pillow
34     pyperclip
35     torch
36     transformers
37     unidic-lite
38   ];
40   meta = with lib; {
41     description = "Optical character recognition for Japanese text, with the main focus being Japanese manga";
42     homepage = "https://github.com/kha-white/manga-ocr";
43     changelog = "https://github.com/kha-white/manga-ocr/releases/tag/${version}";
44     license = licenses.asl20;
45     maintainers = with maintainers; [ laurent-f1z1 ];
46   };