1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pillow, 7 zbar, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "python-zbar"; 13 version = "0.23.93"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "mchehab"; 18 repo = "zbar"; 19 tag = version; 20 hash = "sha256-6gOqMsmlYy6TK+iYPIBsCPAk8tYDliZYMYeTOidl4XQ="; 21 }; 22 23 postPatch = '' 24 cd python 25 ''; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ pillow ]; 30 31 buildInputs = [ zbar ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTests = [ 36 #AssertionError: b'Y800' != 'Y800' 37 "test_format" 38 "test_new" 39 #Requires loading a recording device 40 #zbar.SystemError: <zbar.Processor object at 0x7ffff615a680> 41 "test_processing" 42 # Version too long? 43 # self.assertEqual(len(ver), 2) 44 "test_version" 45 ]; 46 47 pythonImportsCheck = [ "zbar" ]; 48 49 meta = with lib; { 50 description = "Python bindings for zbar"; 51 homepage = "https://github.com/mchehab/zbar"; 52 license = licenses.lgpl21Only; 53 maintainers = [ ]; 54 }; 55}