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