nixpkgs/pkgs/by-name/mo/mokuro/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-14 19:52:51 +00:00
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "mokuro";
2024-08-02 09:59:44 +00:00
version = "0.2.1";
2024-05-14 19:52:51 +00:00
pyproject = true;
src = fetchFromGitHub {
owner = "kha-white";
repo = "mokuro";
rev = "v${version}";
2024-08-02 09:59:44 +00:00
hash = "sha256-+hcc3spbpktavqJ8q4kuQFpkm0PYIru6UdpkU7L8XI4=";
2024-05-14 19:52:51 +00:00
fetchSubmodules = true;
};
pythonRelaxDeps = [ "torchvision" ];
2024-08-02 09:59:44 +00:00
build-system = with python3Packages; [ setuptools-scm ];
2024-05-14 19:52:51 +00:00
dependencies = with python3Packages; [
fire
loguru
manga-ocr
natsort
numpy
2024-11-02 23:54:35 +00:00
opencv-python
2024-05-14 19:52:51 +00:00
pillow
pyclipper
requests
scipy
shapely
torch
torchsummary
torchvision
transformers
tqdm
yattag
];
# tests try to use the network
doCheck = false;
meta = {
description = "Read Japanese manga inside browser with selectable text";
homepage = "https://github.com/kha-white/mokuro";
license = lib.licenses.gpl3Only;
mainProgram = "mokuro";
maintainers = with lib.maintainers; [ tomasajt ];
};
}