python313Packages.paddleocr: 2.9.1 -> 3.0.1

Diff: https://github.com/PaddlePaddle/PaddleOCR/compare/refs/tags/v2.9.1...refs/tags/v3.0.1

Changelog: https://github.com/PaddlePaddle/PaddleOCR/releases/tag/v3.0.1

emaryn e72c2aa5 f8399878

Changed files
+23 -10
pkgs
development
python-modules
paddleocr
+23 -10
pkgs/development/python-modules/paddleocr/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
attrdict,
beautifulsoup4,
cython,
···
paddlepaddle,
lanms-neo,
polygon3,
}:
-
let
-
version = "2.9.1";
-
in
buildPythonPackage rec {
pname = "paddleocr";
-
inherit version;
-
format = "setuptools";
src = fetchFromGitHub {
owner = "PaddlePaddle";
repo = "PaddleOCR";
tag = "v${version}";
-
hash = "sha256-QCddxgVdLaAJLfKCy+tnQsxownfl1Uv0TXhFRiFi9cY=";
};
patches = [
···
./remove-import-imaug.patch
];
# trying to relax only pymupdf makes the whole build fail
pythonRelaxDeps = true;
pythonRemoveDeps = [
···
"opencv-contrib-python"
];
-
propagatedBuildInputs = [
attrdict
beautifulsoup4
cython
···
paddlepaddle
lanms-neo
polygon3
];
# TODO: The tests depend, among possibly other things, on `cudatoolkit`.
···
# nativeCheckInputs = with pkgs; [ which cudatoolkit ];
doCheck = false;
-
meta = with lib; {
homepage = "https://github.com/PaddlePaddle/PaddleOCR";
-
license = licenses.asl20;
description = "Multilingual OCR toolkits based on PaddlePaddle";
longDescription = ''
PaddleOCR aims to create multilingual, awesome, leading, and practical OCR
tools that help users train better models and apply them into practice.
'';
changelog = "https://github.com/PaddlePaddle/PaddleOCR/releases/tag/${src.tag}";
-
maintainers = with maintainers; [ happysalada ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
setuptools,
+
setuptools-scm,
attrdict,
beautifulsoup4,
cython,
···
paddlepaddle,
lanms-neo,
polygon3,
+
paddlex,
+
pyyaml,
}:
buildPythonPackage rec {
pname = "paddleocr";
+
version = "3.0.1";
+
pyproject = true;
src = fetchFromGitHub {
owner = "PaddlePaddle";
repo = "PaddleOCR";
tag = "v${version}";
+
hash = "sha256-B8zIiRpvT0oa/Gg2dLXTqBZmM+XDH3sOzODvleN638E=";
};
patches = [
···
./remove-import-imaug.patch
];
+
postPatch = ''
+
substituteInPlace pyproject.toml \
+
--replace-fail "==72.1.0" ""
+
'';
+
+
build-system = [
+
setuptools
+
setuptools-scm
+
];
+
# trying to relax only pymupdf makes the whole build fail
pythonRelaxDeps = true;
pythonRemoveDeps = [
···
"opencv-contrib-python"
];
+
dependencies = [
attrdict
beautifulsoup4
cython
···
paddlepaddle
lanms-neo
polygon3
+
paddlex
+
pyyaml
];
# TODO: The tests depend, among possibly other things, on `cudatoolkit`.
···
# nativeCheckInputs = with pkgs; [ which cudatoolkit ];
doCheck = false;
+
meta = {
homepage = "https://github.com/PaddlePaddle/PaddleOCR";
+
license = lib.licenses.asl20;
description = "Multilingual OCR toolkits based on PaddlePaddle";
longDescription = ''
PaddleOCR aims to create multilingual, awesome, leading, and practical OCR
tools that help users train better models and apply them into practice.
'';
changelog = "https://github.com/PaddlePaddle/PaddleOCR/releases/tag/${src.tag}";
+
maintainers = with lib.maintainers; [ happysalada ];
platforms = [
"x86_64-linux"
"x86_64-darwin"