python3Packages.pytesseract: 0.3.9 -> 0.3.10, enable tests

ChangeLog: https://github.com/madmaze/pytesseract/releases/tag/v0.3.10
Not published to PyPI, so switching to the GitHub source here.
main
Maximilian Bosch 2 years ago
parent d4286966e3
commit c84e7dc368
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 17
      pkgs/development/python-modules/pytesseract/default.nix

@ -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 {
repo = pname;
owner = "madmaze";
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/";

Loading…
Cancel
Save