aws-lc: 1.39.0 -> 1.42.0 (#369942)
[NixPkgs.git] / pkgs / by-name / mo / mokuro / package.nix
blobd1b14f45c289b9ff5835c47148a8bf35a368c07f
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "mokuro";
9   version = "0.2.1";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "kha-white";
14     repo = "mokuro";
15     rev = "v${version}";
16     hash = "sha256-+hcc3spbpktavqJ8q4kuQFpkm0PYIru6UdpkU7L8XI4=";
17     fetchSubmodules = true;
18   };
20   pythonRelaxDeps = [ "torchvision" ];
22   build-system = with python3Packages; [ setuptools-scm ];
24   dependencies = with python3Packages; [
25     fire
26     loguru
27     manga-ocr
28     natsort
29     numpy
30     opencv-python
31     pillow
32     pyclipper
33     requests
34     scipy
35     shapely
36     torch
37     torchsummary
38     torchvision
39     transformers
40     tqdm
41     yattag
42   ];
44   # tests try to use the network
45   doCheck = false;
47   meta = {
48     description = "Read Japanese manga inside browser with selectable text";
49     homepage = "https://github.com/kha-white/mokuro";
50     license = lib.licenses.gpl3Only;
51     mainProgram = "mokuro";
52     maintainers = with lib.maintainers; [ tomasajt ];
53   };