mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-23 16:31:21 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
43 lines
966 B
Nix
43 lines
966 B
Nix
{ 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 ];
|
|
|
|
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 ];
|
|
};
|
|
}
|