1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, substituteAll 5, pytestCheckHook 6, ffmpeg 7, future 8, pytest-runner 9, pytest-mock 10}: 11 12buildPythonPackage rec { 13 pname = "ffmpeg-python"; 14 version = "0.2.0"; 15 16 src = fetchFromGitHub { 17 owner = "kkroening"; 18 repo = "ffmpeg-python"; 19 rev = version; 20 sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f"; 21 }; 22 23 patches = [ 24 (substituteAll { 25 src = ./ffmpeg-location.patch; 26 inherit ffmpeg; 27 }) 28 ]; 29 30 buildInputs = [ pytest-runner ]; 31 propagatedBuildInputs = [ future ]; 32 checkInputs = [ pytestCheckHook pytest-mock ]; 33 34 meta = with lib; { 35 description = "Python bindings for FFmpeg - with complex filtering support"; 36 homepage = "https://github.com/kkroening/ffmpeg-python"; 37 license = licenses.asl20; 38 maintainers = [ maintainers.AluisioASG ]; 39 }; 40}