Merge pull request #173752 from Ma27/bump-pytesseract
python3Packages.pytesseract: 0.3.9 -> 0.3.10, enable tests
This commit is contained in:
commit
ccc7986205
1 changed files with 10 additions and 7 deletions
|
@ -1,13 +1,17 @@
|
||||||
{ buildPythonPackage, fetchPypi, lib, packaging, pillow, tesseract, substituteAll }:
|
{ buildPythonPackage, fetchFromGitHub, lib, packaging, pillow, tesseract, substituteAll
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytesseract";
|
pname = "pytesseract";
|
||||||
version = "0.3.9";
|
version = "0.3.10";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "madmaze";
|
||||||
sha256 = "sha256-fiuvx/SNG7cUQ85GM6VvXiGSWpjyIKNsM2KX7c0ZVtA=";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-CyKXtaIE/8iPLqi0GHVUgTeJDYZyWBjkRvOKJJKCxZo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -26,8 +30,7 @@ buildPythonPackage rec {
|
||||||
pillow
|
pillow
|
||||||
];
|
];
|
||||||
|
|
||||||
# the package doesn't have any tests.
|
checkInputs = [ pytestCheckHook ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pypi.org/project/pytesseract/";
|
homepage = "https://pypi.org/project/pytesseract/";
|
||||||
|
|
Loading…
Reference in a new issue