3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.ffmpeg-python: disable failing test on Python 3.10

This commit is contained in:
Fabian Affolter 2022-03-05 10:10:30 +01:00
parent 85e428b8e4
commit 015c16f87e

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 ];
};
}