Merge pull request #173752 from Ma27/bump-pytesseract

python3Packages.pytesseract: 0.3.9 -> 0.3.10, enable tests
This commit is contained in:
Maximilian Bosch 2022-05-21 16:17:59 +02:00 committed by GitHub
commit ccc7986205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,17 @@
{ buildPythonPackage, fetchPypi, lib, packaging, pillow, tesseract, substituteAll }:
{ buildPythonPackage, fetchFromGitHub, lib, packaging, pillow, tesseract, substituteAll
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytesseract";
version = "0.3.9";
version = "0.3.10";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fiuvx/SNG7cUQ85GM6VvXiGSWpjyIKNsM2KX7c0ZVtA=";
src = fetchFromGitHub {
owner = "madmaze";
repo = pname;
rev = "v${version}";
sha256 = "sha256-CyKXtaIE/8iPLqi0GHVUgTeJDYZyWBjkRvOKJJKCxZo=";
};
patches = [
@ -26,8 +30,7 @@ buildPythonPackage rec {
pillow
];
# the package doesn't have any tests.
doCheck = false;
checkInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://pypi.org/project/pytesseract/";