nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

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

+30 -8
+30 -8
pkgs/development/python-modules/ffmpeg-python/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , substituteAll 5 - , pytestCheckHook 6 4 , ffmpeg 7 5 , future 8 - , pytest-runner 9 6 , pytest-mock 7 + , pytestCheckHook 8 + , pythonAtLeast 9 + , pythonOlder 10 + , substituteAll 10 11 }: 11 12 12 13 buildPythonPackage rec { 13 14 pname = "ffmpeg-python"; 14 15 version = "0.2.0"; 16 + format = "setuptools"; 17 + 18 + disabled = pythonOlder "3.7"; 15 19 16 20 src = fetchFromGitHub { 17 21 owner = "kkroening"; 18 22 repo = "ffmpeg-python"; 19 23 rev = version; 20 - sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f"; 24 + hash = "sha256-Dk3nHuYVlIiFF6nORZ5TVFkBXdoZUxLfoiz68V1tvlY="; 21 25 }; 26 + 27 + propagatedBuildInputs = [ 28 + future 29 + ]; 30 + 31 + checkInputs = [ 32 + pytestCheckHook 33 + pytest-mock 34 + ]; 22 35 23 36 patches = [ 24 37 (substituteAll { ··· 40 27 }) 41 28 ]; 42 29 43 - buildInputs = [ pytest-runner ]; 44 - propagatedBuildInputs = [ future ]; 45 - checkInputs = [ pytestCheckHook pytest-mock ]; 30 + postPatch = '' 31 + substituteInPlace setup.py \ 32 + --replace "'pytest-runner'" "" 33 + ''; 34 + 35 + pythonImportsCheck = [ 36 + "ffmpeg" 37 + ]; 38 + 39 + disabledTests = lib.optionals (pythonAtLeast "3.10") [ 40 + "test__output__video_size" 41 + ]; 46 42 47 43 meta = with lib; { 48 44 description = "Python bindings for FFmpeg - with complex filtering support"; 49 45 homepage = "https://github.com/kkroening/ffmpeg-python"; 50 46 license = licenses.asl20; 51 - maintainers = [ maintainers.AluisioASG ]; 47 + maintainers = with maintainers; [ AluisioASG ]; 52 48 }; 53 49 }