Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytesseract / default.nix
bloba7af2d1db032035e1ff1c425dd61bbf2e6b4b624
1 { buildPythonPackage, fetchPypi, lib, pillow, tesseract, substituteAll }:
3 buildPythonPackage rec {
4   pname = "pytesseract";
5   version = "0.3.7";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "4ecfc898d00a70fcc38d2bce729de1597c67e7bc5d2fa26094714c9f5b573645";
10   };
12   patches = [
13     (substituteAll {
14       src = ./tesseract-binary.patch;
15       drv = tesseract;
16     })
17   ];
19   buildInputs = [ tesseract ];
20   propagatedBuildInputs = [ pillow ];
22   # the package doesn't have any tests.
23   doCheck = false;
25   meta = with lib; {
26     homepage = "https://pypi.org/project/pytesseract/";
27     license = licenses.asl20;
28     description = "A Python wrapper for Google Tesseract";
29     maintainers = with maintainers; [ ma27 ];
30   };