python310Packages.python-zbar: init at 0.23.90

This commit is contained in:
P. R. d. O 2022-03-07 11:29:45 -06:00
parent 4797442a72
commit 0d6e095755
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ 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;
sha256 = "sha256-FvV7TMc4JbOiRjWLka0IhtpGGqGm5fis7h870OmJw2U=";
};
propagatedBuildInputs = [ pillow ];
buildInputs = [ zbar ];
checkInputs = [ 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 ];
};
}

View File

@ -8277,6 +8277,8 @@ in {
python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { };
python-zbar = callPackage ../development/python-modules/python-zbar { };
pythran = callPackage ../development/python-modules/pythran {
inherit (pkgs.llvmPackages) openmp;
};