Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 55 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, pillow, zbar, pytestCheckHook}:
buildPythonPackage rec { pname = "python-zbar"; version = "0.23.90"; format = "setuptools";
src = fetchFromGitHub { owner = "mchehab"; repo = "zbar"; rev = version; hash = "sha256-FvV7TMc4JbOiRjWLka0IhtpGGqGm5fis7h870OmJw2U="; };
patches = [ # python: enum: fix build for Python 3.11 # https://github.com/mchehab/zbar/pull/231 # the patch is reworked as it does not cleanly apply ./0001-python-enum-fix-build-for-Python-3.11.patch ];
propagatedBuildInputs = [ pillow ];
buildInputs = [ zbar ];
nativeCheckInputs = [ pytestCheckHook ];
preBuild = '' cd python '';
disabledTests = [ #AssertionError: b'Y800' != 'Y800' "test_format" "test_new" #Requires loading a recording device #zbar.SystemError: <zbar.Processor object at 0x7ffff615a680> "test_processing" ];
pythonImportsCheck = [ "zbar" ];
meta = with lib; { description = "Python bindings for zbar"; homepage = "https://github.com/mchehab/zbar"; license = licenses.lgpl21Only; maintainers = with maintainers; [ wolfangaukang ]; };}