owocr: 1.22.8 -> 1.26.3

This commit is contained in:
Sigmanificient
2026-03-16 00:02:11 +01:00
parent 813d15c9a5
commit 4aa3945583
+15 -5
View File
@@ -3,18 +3,26 @@
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "owocr";
version = "1.22.8";
version = "1.26.3";
pyproject = true;
src = fetchFromGitHub {
owner = "AuroraWright";
repo = "owocr";
rev = "9b9c8b1b4f12a592877a66d727eb25a30462c177"; # no tags
hash = "sha256-N9XbuoUbb1qxp/dFacpuDErh01oWmKRdTon3OvLaMfc=";
tag = finalAttrs.version;
hash = "sha256-/eee0uOWZgjHKhN3Ie75qxXqlSH1Fm3ipDYkvyIK5LM=";
};
# we use pystray directly to avoid making a new package
# that only carries a single patch for windows double click support.
# pythonRelaxDeps was not successful in patching
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "pystrayfix>=0.19.8" "pystray"
'';
build-system = [ python3Packages.setuptools ];
dependencies = with python3Packages; [
@@ -40,6 +48,8 @@ python3Packages.buildPythonApplication {
manga-ocr
rapidocr
requests # winRT OCR
python3Packages.obsws-python
python3Packages.pystray
python3Packages.pynputfix
curl-cffi
pygobject3
@@ -55,4 +65,4 @@ python3Packages.buildPythonApplication {
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}
})