Merge pull request #161123 from fabaff/bump-reolink

python3Packages.reolink: 0053 -> 0.60
This commit is contained in:
Fabian Affolter 2022-03-05 10:38:22 +01:00 committed by GitHub
commit fdd8daf773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 10 deletions

View File

@ -1,25 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, pytestCheckHook
, ffmpeg
, future
, pytest-runner
, pytest-mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, substituteAll
}:
buildPythonPackage rec {
pname = "ffmpeg-python";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kkroening";
repo = "ffmpeg-python";
rev = version;
sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
hash = "sha256-Dk3nHuYVlIiFF6nORZ5TVFkBXdoZUxLfoiz68V1tvlY=";
};
propagatedBuildInputs = [
future
];
checkInputs = [
pytestCheckHook
pytest-mock
];
patches = [
(substituteAll {
src = ./ffmpeg-location.patch;
@ -27,14 +40,23 @@ buildPythonPackage rec {
})
];
buildInputs = [ pytest-runner ];
propagatedBuildInputs = [ future ];
checkInputs = [ pytestCheckHook pytest-mock ];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
pythonImportsCheck = [
"ffmpeg"
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
"test__output__video_size"
];
meta = with lib; {
description = "Python bindings for FFmpeg - with complex filtering support";
homepage = "https://github.com/kkroening/ffmpeg-python";
license = licenses.asl20;
maintainers = [ maintainers.AluisioASG ];
maintainers = with maintainers; [ AluisioASG ];
};
}

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "reolink";
version = "0053";
version = "0.60";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "fwestenberg";
repo = pname;
rev = "v${version}";
sha256 = "0qjp7n2qa9n9fdhfcgfgw89hy19z5144cxhkhmhv1xnfdiz175qd";
sha256 = "sha256-4yk05obra0icWHPXaJ+Wj+xxDRkVYg/VsrXTQUdHJIc=";
};
propagatedBuildInputs = [