From a7bb27e3cb21f887b1ee11cbda8b163fc61312c2 Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Wed, 1 Jan 2025 23:31:34 +0900 Subject: [PATCH] manga-ocr: relax 'numpy<2' constraint (#369936) Fixes the build failure in #369935 I'll also create an upstream PR for the same. As best I can tell, relaxing this constraint gives us a perfectly working package. I've verified the application launches, and basic OCR functionality works. --- pkgs/development/python-modules/manga-ocr/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/manga-ocr/default.nix b/pkgs/development/python-modules/manga-ocr/default.nix index 892e3b43a20c..3c8ea272b7a5 100644 --- a/pkgs/development/python-modules/manga-ocr/default.nix +++ b/pkgs/development/python-modules/manga-ocr/default.nix @@ -37,6 +37,11 @@ buildPythonPackage rec { unidic-lite ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "numpy<2" "numpy" + ''; + meta = with lib; { description = "Optical character recognition for Japanese text, with the main focus being Japanese manga"; homepage = "https://github.com/kha-white/manga-ocr";