mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 05:44:13 +00:00
easyocr: init at 1.6.2
This commit is contained in:
parent
e8b8afb255
commit
314ba12175
61
pkgs/development/python-modules/easyocr/default.nix
Normal file
61
pkgs/development/python-modules/easyocr/default.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hdf5
|
||||
, numpy
|
||||
, opencv3
|
||||
, pillow
|
||||
, pyaml
|
||||
, pyclipper
|
||||
, python-bidi
|
||||
, torch
|
||||
, scikitimage
|
||||
, scipy
|
||||
, shapely
|
||||
, torchvision
|
||||
, onnx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "easyocr";
|
||||
version = "1.6.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JaidedAI";
|
||||
repo = "EasyOCR";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-f+JBSnFMRvVlhRRiL1rJb7a0CNjZPuh6r8r3K1meQCk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "opencv-python-headless<=4.5.4.60" "" \
|
||||
--replace "ninja" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
scikitimage
|
||||
hdf5
|
||||
python-bidi
|
||||
numpy
|
||||
opencv3
|
||||
torchvision
|
||||
pillow
|
||||
pyaml
|
||||
pyclipper
|
||||
torch
|
||||
scipy
|
||||
shapely
|
||||
];
|
||||
|
||||
checkInputs = [ onnx ];
|
||||
|
||||
pythonImportsCheck = [ "easyocr" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ready-to-use OCR with 80+ supported languages and all popular writing scripts";
|
||||
homepage = "https://github.com/JaidedAI/EasyOCR";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dit7ya ];
|
||||
};
|
||||
}
|
@ -3927,6 +3927,8 @@ with pkgs;
|
||||
|
||||
easycrypt-runtest = callPackage ../applications/science/logic/easycrypt/runtest.nix { };
|
||||
|
||||
easyocr = with python3.pkgs; toPythonApplication easyocr;
|
||||
|
||||
EBTKS = callPackage ../development/libraries/science/biology/EBTKS { };
|
||||
|
||||
ecasound = callPackage ../applications/audio/ecasound { };
|
||||
|
@ -2834,6 +2834,8 @@ self: super: with self; {
|
||||
|
||||
easygui = callPackage ../development/python-modules/easygui { };
|
||||
|
||||
easyocr = callPackage ../development/python-modules/easyocr { };
|
||||
|
||||
EasyProcess = callPackage ../development/python-modules/easyprocess { };
|
||||
|
||||
easysnmp = callPackage ../development/python-modules/easysnmp { };
|
||||
|
Loading…
Reference in New Issue
Block a user