diff --git a/pkgs/by-name/ma/manga-ocr/package.nix b/pkgs/by-name/ma/manga-ocr/package.nix index e5ee0bf3c36a55..b5c6aa5c930245 100644 --- a/pkgs/by-name/ma/manga-ocr/package.nix +++ b/pkgs/by-name/ma/manga-ocr/package.nix @@ -1,30 +1,27 @@ { lib, fetchFromGitHub, - python3Packages, + python3, }: - -with python3Packages; - -buildPythonPackage rec { +python3.pkgs.buildPythonPackage rec { pname = "manga-ocr"; - version = "0.1.12"; - disabled = pythonOlder "3.7"; - format = "pyproject"; + version = "0.1.13"; + disabled = python3.pkgs.pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "kha-white"; repo = "manga-ocr"; rev = "refs/tags/v${version}"; - hash = "sha256-uSWnrHS59fNcF7ve3imMwwNJ+/dmplBAavbDoBkEgGc="; + hash = "sha256-0EwXDMnA9SCmSsMVXnMenSFSzs74lorFNNym9y/NNsI="; }; - build-system = [ + build-system = with python3.pkgs; [ setuptools setuptools-scm ]; - dependencies = [ + dependencies = with python3.pkgs; [ fire fugashi jaconv @@ -37,11 +34,11 @@ buildPythonPackage rec { unidic-lite ]; - meta = with lib; { + meta = { 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; - maintainers = with maintainers; [ laurent-f1z1 ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [laurent-f1z1]; }; }