python3Packages.pyocr: disable cuneiform support

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin
2025-10-05 16:04:57 +02:00
parent 216904afee
commit f36d0db5e3
2 changed files with 4 additions and 2 deletions

View File

@@ -172,6 +172,8 @@
- `neovimUtils.makeNeovimConfig` now uses `customLuaRC` parameter instead of accepting `luaRcContent`. The old usage is deprecated but still works with a warning. - `neovimUtils.makeNeovimConfig` now uses `customLuaRC` parameter instead of accepting `luaRcContent`. The old usage is deprecated but still works with a warning.
- `python3Packages.pyocr` no longer supports `cuneiform` on Linux by default. It is still possible to enable it using `withCuneiformSupport` override.
- `telegram-desktop` packages now uses `Telegram` for its binary. The previous name was `telegram-desktop`. This is due to [an upstream decision](https://github.com/telegramdesktop/tdesktop/commit/56ff5808a3d766f892bc3c3305afb106b629ef6f) to make the name consistent with other platforms. - `telegram-desktop` packages now uses `Telegram` for its binary. The previous name was `telegram-desktop`. This is due to [an upstream decision](https://github.com/telegramdesktop/tdesktop/commit/56ff5808a3d766f892bc3c3305afb106b629ef6f) to make the name consistent with other platforms.
- `hsd` has been upgraded to version 8. See [their changelog](https://github.com/handshake-org/hsd/blob/v8.0.0/docs/release-notes/release-notes-8.x.md) for important instructions before upgrading. - `hsd` has been upgraded to version 8. See [their changelog](https://github.com/handshake-org/hsd/blob/v8.0.0/docs/release-notes/release-notes-8.x.md) for important instructions before upgrading.

View File

@@ -12,7 +12,7 @@
setuptools, setuptools,
setuptools-scm, setuptools-scm,
withTesseractSupport ? true, withTesseractSupport ? true,
withCuneiformSupport ? stdenv.hostPlatform.isLinux, withCuneiformSupport ? false,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -39,7 +39,7 @@ buildPythonPackage rec {
tesseractLibraryLocation = "${tesseract}/lib/libtesseract${stdenv.hostPlatform.extensions.sharedLibrary}"; tesseractLibraryLocation = "${tesseract}/lib/libtesseract${stdenv.hostPlatform.extensions.sharedLibrary}";
} }
)) ))
++ (lib.optional stdenv.hostPlatform.isLinux ( ++ (lib.optional withCuneiformSupport (
replaceVars ./paths-cuneiform.patch { replaceVars ./paths-cuneiform.patch {
inherit cuneiform; inherit cuneiform;
} }