portfolio: 0.71.2 -> 0.72.2 (#360387)
[NixPkgs.git] / pkgs / development / python-modules / manga-ocr / default.nix
blob892e3b43a20c32429c190e196e142f58bde71947
2   lib,
3   fetchFromGitHub,
4   python3Packages,
5 }:
7 with python3Packages;
9 buildPythonPackage rec {
10   pname = "manga-ocr";
11   version = "0.1.13";
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-0EwXDMnA9SCmSsMVXnMenSFSzs74lorFNNym9y/NNsI=";
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   };