1{ buildPythonPackage
2, fetchFromGitHub
3, lxml
4, pillow
5, reportlab
6, lib
7}:
8buildPythonPackage rec {
9 pname = "hocr-tools";
10 version = "1.3.0";
11
12 src = fetchFromGitHub {
13 owner = "tmbdev";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "14f9hkp7pr677085w8iidwd0la9cjzy3pyj3rdg9b03nz9pc0w6p";
17 };
18
19 # hocr-tools uses a test framework that requires internet access
20 doCheck = false;
21
22 propagatedBuildInputs = [ pillow lxml reportlab ];
23
24 meta = with lib; {
25 description = "
26Tools for manipulating and evaluating the hOCR format for representing multi-lingual OCR results by embedding them into HTML";
27 homepage = "https://github.com/tmbdev/hocr-tools";
28 license = licenses.asl20;
29 maintainers = [ maintainers.kiwi ];
30 };
31}