11 buildPythonPackage rec {
12 pname = "python-zbar";
16 src = fetchFromGitHub {
19 rev = "refs/tags/${version}";
20 hash = "sha256-6gOqMsmlYy6TK+iYPIBsCPAk8tYDliZYMYeTOidl4XQ=";
27 build-system = [ setuptools ];
29 dependencies = [ pillow ];
31 buildInputs = [ zbar ];
33 nativeCheckInputs = [ pytestCheckHook ];
36 #AssertionError: b'Y800' != 'Y800'
39 #Requires loading a recording device
40 #zbar.SystemError: <zbar.Processor object at 0x7ffff615a680>
43 # self.assertEqual(len(ver), 2)
47 pythonImportsCheck = [ "zbar" ];
50 description = "Python bindings for zbar";
51 homepage = "https://github.com/mchehab/zbar";
52 license = licenses.lgpl21Only;