9 buildPythonPackage rec {
10 pname = "python-zbar";
12 format = "setuptools";
14 src = fetchFromGitHub {
18 hash = "sha256-FvV7TMc4JbOiRjWLka0IhtpGGqGm5fis7h870OmJw2U=";
22 # python: enum: fix build for Python 3.11
23 # https://github.com/mchehab/zbar/pull/231
24 # the patch is reworked as it does not cleanly apply
25 ./0001-python-enum-fix-build-for-Python-3.11.patch
28 propagatedBuildInputs = [ pillow ];
30 buildInputs = [ zbar ];
32 nativeCheckInputs = [ pytestCheckHook ];
39 #AssertionError: b'Y800' != 'Y800'
42 #Requires loading a recording device
43 #zbar.SystemError: <zbar.Processor object at 0x7ffff615a680>
47 pythonImportsCheck = [ "zbar" ];
50 description = "Python bindings for zbar";
51 homepage = "https://github.com/mchehab/zbar";
52 license = licenses.lgpl21Only;
53 maintainers = with maintainers; [ wolfangaukang ];