python311Packages.easyocr: add format

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-06-09 23:13:04 +02:00
parent 02697fa8ac
commit 2613f870fb

View file

@ -3,22 +3,26 @@
, fetchFromGitHub
, hdf5
, numpy
, onnx
, opencv3
, pillow
, pyaml
, pyclipper
, python-bidi
, torch
, pythonOlder
, scikit-image
, scipy
, shapely
, torch
, torchvision
, onnx
}:
buildPythonPackage rec {
pname = "easyocr";
version = "1.6.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "JaidedAI";
@ -34,23 +38,27 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
scikit-image
hdf5
python-bidi
numpy
opencv3
torchvision
pillow
pyaml
pyclipper
torch
python-bidi
scikit-image
scipy
shapely
torch
torchvision
];
nativeCheckInputs = [ onnx ];
nativeCheckInputs = [
onnx
];
pythonImportsCheck = [ "easyocr" ];
pythonImportsCheck = [
"easyocr"
];
meta = with lib; {
description = "Ready-to-use OCR with 80+ supported languages and all popular writing scripts";